Fixed undefined variable (regression)

This commit is contained in:
Matias Griese
2021-03-31 08:55:19 +03:00
parent 1d3d2a0bf9
commit 2a4376b7cb

View File

@@ -308,7 +308,7 @@ class PageObject extends FlexPageObject
// Backwards compatibility with older plugins.
$fireEvents = $this->isAdminSite() && $this->getFlexDirectory()->getConfig('object.compat.events', true);
if ($fireEvents) {
$this->grav->fireEvent('onAdminAfterDelete', new Event(['object' => $this]));
$this->getContainer()->fireEvent('onAdminAfterDelete', new Event(['object' => $this]));
}
return $result;