]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
EndActionExecute event should only run if the Action is not overridden
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 18:13:11 +0000 (20:13 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 6 Jun 2015 18:13:11 +0000 (20:13 +0200)
lib/action.php

index a9cc99221da1b2eb573bb309aac6f323e4352a21..fa91d46726c572fddd52ee4303a10b8b26c3e6f8 100644 (file)
@@ -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));
+        }
     }
 
     /**