Start and EndActionExecute added/fixed/documented

This commit is contained in:
Mikael Nordfeldth
2015-02-27 12:11:43 +01:00
parent 1cc96cd334
commit f25e5e3860
4 changed files with 17 additions and 8 deletions

View File

@@ -118,16 +118,18 @@ class Action extends HTMLOutputter // lawsuit
common_config_set('db', 'database', $mirror);
}
$status = $this->prepare($args);
if ($status) {
$this->handle($args);
} else {
common_debug('Prepare failed for Action.');
if (Event::handle('StartActionExecute', array($this, &$args))) {
$prepared = $this->prepare($args);
if ($prepared) {
$this->handle($args);
} else {
common_debug('Prepare failed for Action.');
}
}
$this->flush();
Event::handle('EndActionExecute', array($status, $this));
Event::handle('EndActionExecute', array($this));
}
/**