Skip to content

Commit

Permalink
Fixed undefined variable (regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Mar 31, 2021
1 parent 1d3d2a0 commit 2a4376b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Flex/Types/Pages/PageObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function delete()
// 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;
Expand Down

0 comments on commit 2a4376b

Please sign in to comment.