diff options
Diffstat (limited to 'engine/lib/actions.php')
| -rw-r--r-- | engine/lib/actions.php | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php index 97d65e26e..f4a39bf47 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -59,11 +59,14 @@  	                	$event_result = true;  	                	$event_result = trigger_plugin_hook('action', $action, null, $event_result); -	                	// Include action
 -		                if (($event_result) && (@include($CONFIG->actions[$action]['file']))) {
 -		                } else {
 -		                    register_error(sprintf(elgg_echo('actionundefined'),$action));
 -		                }
 +	                	// Include action +	                	if ($event_result) // Event_result being false doesn't produce an error - since i assume this will be handled in the hook itself. TODO make this better! +	                	{
 +			                if (@include($CONFIG->actions[$action]['file'])) {
 +			                } else {
 +			                    register_error(sprintf(elgg_echo('actionundefined'),$action));
 +			                } +	                	}
  	                } else {
  	                    register_error(elgg_echo('actionloggedout'));
  	                }  | 
