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/sitepages/start.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mod/sitepages') diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php index 684bca62d..1f05f1287 100644 --- a/mod/sitepages/start.php +++ b/mod/sitepages/start.php @@ -20,7 +20,6 @@ */ function sitepages_init() { require_once(dirname(__FILE__) . '/sitepages_functions.php'); - global $CONFIG; // Extend CSS elgg_extend_view('css', 'sitepages/css'); @@ -49,7 +48,8 @@ function sitepages_init() { // hook into the walled garden pages elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'sitepages_public_pages'); - elgg_register_action('settings/sitepages/save', "{$CONFIG->pluginspath}sitepages/actions/edit_settings.php"); + $action_path = elgg_get_plugin_path() . 'sitepages/actions'; + elgg_register_action('settings/sitepages/save', "$action_path/edit_settings.php"); } @@ -108,7 +108,6 @@ function sitepages_url($expage) { * @return unknown_type */ function sitepages_page_handler($page) { - global $CONFIG; // for the owner block. if ($logged_in_guid = get_loggedin_userid()) { -- cgit v1.2.3