diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-30 02:12:20 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-30 02:12:20 +0000 |
commit | 6f59a0482ed182ed3f544ebde84bbcfdcd9b4680 (patch) | |
tree | cd5e07ce01084ade525dae1b168225638e28ac59 /mod/sitepages | |
parent | 68f09537fcdb4222947a6c8938e4416bcc47e4ec (diff) | |
download | elgg-6f59a0482ed182ed3f544ebde84bbcfdcd9b4680.tar.gz elgg-6f59a0482ed182ed3f544ebde84bbcfdcd9b4680.tar.bz2 |
Refs #2428 removed some global CONFIG usage in plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7479 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages')
-rw-r--r-- | mod/sitepages/start.php | 5 |
1 files changed, 2 insertions, 3 deletions
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()) { |