]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
Cron plugin added and now default queue handler
[quix0rs-gnu-social.git] / lib / action.php
index ddfc5a505af844891a162fd25f972f498b1562e7..6d21c36e370985861b5c479188189dd3c99ec89f 100644 (file)
@@ -117,9 +117,16 @@ class Action extends HTMLOutputter // lawsuit
             common_config_set('db', 'database', $mirror);
         }
 
-        if ($this->prepare($args)) {
+        $status = $this->prepare($args);
+        if ($status) {
             $this->handle($args);
+        } else {
+            common_debug('Prepare failed for Action.');
         }
+
+        $this->flush();
+
+        Event::handle('EndActionExecute', array($status, $this));
     }
 
     /**