diff options
Diffstat (limited to 'mod/reportedcontent/start.php')
-rw-r--r-- | mod/reportedcontent/start.php | 3 |
1 files changed, 1 insertions, 2 deletions
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'); |