From: Mikael Nordfeldth Date: Sat, 6 Jun 2015 18:13:11 +0000 (+0200) Subject: EndActionExecute event should only run if the Action is not overridden X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15643c802b25b6860f5ab0d9715ca51d9de7146b;p=quix0rs-gnu-social.git EndActionExecute event should only run if the Action is not overridden --- diff --git a/lib/action.php b/lib/action.php index a9cc99221d..fa91d46726 100644 --- a/lib/action.php +++ b/lib/action.php @@ -125,11 +125,10 @@ class Action extends HTMLOutputter // lawsuit } else { common_debug('Prepare failed for Action.'); } - } - - $this->flush(); - Event::handle('EndActionExecute', array($this)); + $this->flush(); + Event::handle('EndActionExecute', array($this)); + } } /**