From 6f59a0482ed182ed3f544ebde84bbcfdcd9b4680 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 30 Nov 2010 02:12:20 +0000 Subject: Refs #2428 removed some global CONFIG usage in plugins git-svn-id: http://code.elgg.org/elgg/trunk@7479 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/reportedcontent/start.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mod/reportedcontent/start.php') diff --git a/mod/reportedcontent/start.php b/mod/reportedcontent/start.php index 815c35fe5..37f98ad49 100644 --- a/mod/reportedcontent/start.php +++ b/mod/reportedcontent/start.php @@ -11,7 +11,6 @@ elgg_register_event_handler('init','system','reportedcontent_init'); * Initialize the plugin */ function reportedcontent_init() { - global $CONFIG; // Register a page handler, so we can have nice URLs register_page_handler('reportedcontent', 'reportedcontent_page_handler'); @@ -30,7 +29,7 @@ function reportedcontent_init() { elgg_add_admin_submenu_item('reportedcontent', elgg_echo('reportedcontent'), 'overview'); // Register actions - $action_path = "{$CONFIG->pluginspath}reportedcontent/actions"; + $action_path = elgg_get_plugin_path() . "reportedcontent/actions"; elgg_register_action('reportedcontent/add', "$action_path/add.php"); elgg_register_action('reportedcontent/delete', "$action_path/delete.php", 'admin'); elgg_register_action('reportedcontent/archive', "$action_path/archive.php", 'admin'); -- cgit v1.2.3