From 9c1e6d6463937bdee2d1de9735463a69f8af305d Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 24 Nov 2010 00:50:54 +0000 Subject: Fixes #2655: Converted register_action to elgg_register_action throughout core git-svn-id: http://code.elgg.org/elgg/trunk@7432 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/start.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/start.php b/mod/profile/start.php index c8a83077c..623d411ef 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -284,13 +284,13 @@ elgg_register_event_handler('profileupdate','all','object_notifications'); // Register actions global $CONFIG; -register_action("profile/edit",false,$CONFIG->pluginspath . "profile/actions/edit.php"); -register_action("profile/iconupload",false,$CONFIG->pluginspath . "profile/actions/iconupload.php"); -register_action("profile/cropicon",false,$CONFIG->pluginspath . "profile/actions/cropicon.php"); -register_action("profile/editdefault",false,$CONFIG->pluginspath . "profile/actions/editdefault.php", true); -register_action("profile/editdefault/delete",false,$CONFIG->pluginspath . "profile/actions/deletedefaultprofileitem.php", true); -register_action("profile/editdefault/reset",false,$CONFIG->pluginspath . "profile/actions/resetdefaultprofile.php", true); -register_action("profile/editdefault/reorder",false,$CONFIG->pluginspath . "profile/actions/reorder.php", true); -register_action("profile/editdefault/editfield",false,$CONFIG->pluginspath . "profile/actions/editfield.php", true); -register_action("profile/addcomment",false,$CONFIG->pluginspath . "profile/actions/addcomment.php"); -register_action("profile/deletecomment",false,$CONFIG->pluginspath . "profile/actions/deletecomment.php"); +elgg_register_action("profile/edit", $CONFIG->pluginspath . "profile/actions/edit.php"); +elgg_register_action("profile/iconupload", $CONFIG->pluginspath . "profile/actions/iconupload.php"); +elgg_register_action("profile/cropicon", $CONFIG->pluginspath . "profile/actions/cropicon.php"); +elgg_register_action("profile/editdefault", $CONFIG->pluginspath . "profile/actions/editdefault.php", 'admin'); +elgg_register_action("profile/editdefault/delete", $CONFIG->pluginspath . "profile/actions/deletedefaultprofileitem.php", 'admin'); +elgg_register_action("profile/editdefault/reset", $CONFIG->pluginspath . "profile/actions/resetdefaultprofile.php", 'admin'); +elgg_register_action("profile/editdefault/reorder", $CONFIG->pluginspath . "profile/actions/reorder.php", 'admin'); +elgg_register_action("profile/editdefault/editfield", $CONFIG->pluginspath . "profile/actions/editfield.php", 'admin'); +elgg_register_action("profile/addcomment", $CONFIG->pluginspath . "profile/actions/addcomment.php"); +elgg_register_action("profile/deletecomment", $CONFIG->pluginspath . "profile/actions/deletecomment.php"); -- cgit v1.2.3