diff options
Diffstat (limited to 'mod/sitepages/start.php')
-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()) { |