From c1f332857fc3f0bf77081647758dda338aa70d27 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 17 Sep 2010 18:47:51 +0000 Subject: Fixes #2479: Removed unused actions init and registered "error" action. git-svn-id: http://code.elgg.org/elgg/trunk@6950 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/actions.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'engine/lib/actions.php') diff --git a/engine/lib/actions.php b/engine/lib/actions.php index b889476b3..6b2967964 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -176,19 +176,6 @@ function register_action($action, $public = false, $filename = "", $admin_only = return true; } -/** - * Actions to perform on initialisation - * - * @param string $event Events API required parameters - * @param string $object_type Events API required parameters - * @param string $object Events API required parameters - * @todo remove - */ -function actions_init($event, $object_type, $object) { - register_action("error"); - return true; -} - /** * Validate an action token. * @@ -352,6 +339,4 @@ function elgg_action_exist($action) { global $CONFIG; return (isset($CONFIG->actions[$action]) && file_exists($CONFIG->actions[$action]['file'])); -} - -register_elgg_event_handler("init", "system", "actions_init"); \ No newline at end of file +} \ No newline at end of file -- cgit v1.2.3