]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2479: Removed unused actions init and registered "error" action.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 17 Sep 2010 18:47:51 +0000 (18:47 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 17 Sep 2010 18:47:51 +0000 (18:47 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6950 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/actions.php

index b889476b3c64bdb3bab48c050bace3b54e9cc4d1..6b29679640e6be0f009c41b52e7a8bc2b84fe7fb 100644 (file)
@@ -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