diff options
Diffstat (limited to 'engine/lib/actions.php')
-rw-r--r-- | engine/lib/actions.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php index a78072f31..9eba53e67 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -53,7 +53,12 @@ (isadminloggedin()) || (!$CONFIG->actions[$action]['admin']) ) {
- if ($CONFIG->actions[$action]['public'] || $_SESSION['id'] != -1) {
+ if ($CONFIG->actions[$action]['public'] || $_SESSION['id'] != -1) { + + // Trigger action event TODO: This is only called before the primary action is called. We need to rethink actions for 1.5 + trigger_elgg_event('action', $action); + + // Include action
if (@include($CONFIG->actions[$action]['file'])) {
} else {
register_error(sprintf(elgg_echo('actionundefined'),$action));
|