aboutsummaryrefslogtreecommitdiff
path: root/mod/categories
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:07:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:07:28 +0000
commit755947e111d89d6babcd0f070d91c2245e22a809 (patch)
tree284e62a3f1cfca8f9d23e88680544cde4f5aea79 /mod/categories
parent949a233076ec18f86e60f90a7a8837cb422664af (diff)
downloadelgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.gz
elgg-755947e111d89d6babcd0f070d91c2245e22a809.tar.bz2
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
Diffstat (limited to 'mod/categories')
-rw-r--r--mod/categories/start.php8
1 files changed, 4 insertions, 4 deletions
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;