From 755947e111d89d6babcd0f070d91c2245e22a809 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 3 Feb 2011 12:07:28 +0000 Subject: Refs #2428 just a few more CONFIG uses left to be replaced git-svn-id: http://code.elgg.org/elgg/trunk@8000 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/categories/start.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mod/categories') diff --git a/mod/categories/start.php b/mod/categories/start.php index e69e482b8..a904f19ae 100644 --- a/mod/categories/start.php +++ b/mod/categories/start.php @@ -11,11 +11,11 @@ * */ function categories_init() { - global $CONFIG; elgg_extend_view('css/screen', 'categories/css'); - elgg_register_action('settings/categories/save', $CONFIG->pluginspath . 'categories/actions/save.php', 'admin'); + $action_base = elgg_get_plugin_path() . 'categories/actions'; + elgg_register_action('settings/categories/save', "$action_base/save.php", 'admin'); register_page_handler('categories', 'categories_page_handler'); @@ -59,8 +59,8 @@ function categories_save($event, $object_type, $object) { */ function categories_on_enable() { if (!$site->categories) { - global $CONFIG; - $message = elgg_echo('categories:on_enable_reminder', array("{$CONFIG->url}pg/admin/plugin_settings/categories")); + $url = elgg_normalize_url('pg/admin/plugin_settings/categories'); + $message = elgg_echo('categories:on_enable_reminder', array($url)); elgg_add_admin_notice('categories_admin_notice_no_categories', $message); } return TRUE; -- cgit v1.2.3