diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 21:38:55 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-02 21:38:55 +0000 |
commit | e40958a97ddce771ac9a9f2a8473da7ee3e6534f (patch) | |
tree | 2e11cad9676db5a0421b3aa98a570cd78a83cbf2 /mod/pages/start.php | |
parent | 1d3d21b69eafb45c97e283ead86f63e7bf1731dc (diff) | |
download | elgg-e40958a97ddce771ac9a9f2a8473da7ee3e6534f.tar.gz elgg-e40958a97ddce771ac9a9f2a8473da7ee3e6534f.tar.bz2 |
Fixes #2463: Removed gratuitous references to $CONFIG->url, etc. from the rest of the plugins.
git-svn-id: http://code.elgg.org/elgg/trunk@7205 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/start.php')
-rw-r--r-- | mod/pages/start.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/mod/pages/start.php b/mod/pages/start.php index fb09b2280..4c7bb1d15 100644 --- a/mod/pages/start.php +++ b/mod/pages/start.php @@ -68,10 +68,9 @@ function pages_init() { } function pages_url($entity) { - global $CONFIG; $title = elgg_get_friendly_title($entity->title); - return $CONFIG->url . "pg/pages/view/{$entity->guid}/$title"; + return "pg/pages/view/{$entity->guid}/$title"; } /** @@ -132,12 +131,12 @@ function pages_page_handler($page) { } $entity = get_entity($page[1]); - add_submenu_item(elgg_echo('pages:label:view'), $CONFIG->url . "pg/pages/view/{$page[1]}", 'pageslinks'); + add_submenu_item(elgg_echo('pages:label:view'), "pg/pages/view/{$page[1]}", 'pageslinks'); // add_submenu_item(elgg_echo('pages:user'), elgg_get_site_url() . "pg/pages/owned/" . get_loggedin_user()->username, 'pageslinksgeneral'); if (($entity) && ($entity->canEdit())) { - add_submenu_item(elgg_echo('pages:label:edit'), $CONFIG->url . "pg/pages/edit/{$page[1]}", 'pagesactions'); + add_submenu_item(elgg_echo('pages:label:edit'), "pg/pages/edit/{$page[1]}", 'pagesactions'); } - add_submenu_item(elgg_echo('pages:label:history'), $CONFIG->url . "pg/pages/history/{$page[1]}", 'pageslinks'); + add_submenu_item(elgg_echo('pages:label:history'), "pg/pages/history/{$page[1]}", 'pageslinks'); include($CONFIG->pluginspath . "pages/edit.php"); break; @@ -150,12 +149,12 @@ function pages_page_handler($page) { elgg_extend_view('metatags','pages/metatags'); $entity = get_entity($page[1]); - //add_submenu_item(elgg_echo('pages:label:view'), $CONFIG->url . "pg/pages/view/{$page[1]}", 'pageslinks'); + //add_submenu_item(elgg_echo('pages:label:view'), "pg/pages/view/{$page[1]}", 'pageslinks'); if (($entity) && ($entity->canEdit())) { - add_submenu_item(elgg_echo('pages:label:edit'), $CONFIG->url . "pg/pages/edit/{$page[1]}", 'pagesactions'); + add_submenu_item(elgg_echo('pages:label:edit'), "pg/pages/edit/{$page[1]}", 'pagesactions'); } - add_submenu_item(elgg_echo('pages:label:history'), $CONFIG->url . "pg/pages/history/{$page[1]}", 'pageslinks'); + add_submenu_item(elgg_echo('pages:label:history'), "pg/pages/history/{$page[1]}", 'pageslinks'); include($CONFIG->pluginspath . "pages/view.php"); break; @@ -168,11 +167,11 @@ function pages_page_handler($page) { elgg_extend_view('metatags','pages/metatags'); $entity = get_entity($page[1]); - add_submenu_item(elgg_echo('pages:label:view'), $CONFIG->url . "pg/pages/view/{$page[1]}", 'pageslinks'); + add_submenu_item(elgg_echo('pages:label:view'), "pg/pages/view/{$page[1]}", 'pageslinks'); if (($entity) && ($entity->canEdit())) { - add_submenu_item(elgg_echo('pages:label:edit'), $CONFIG->url . "pg/pages/edit/{$page[1]}", 'pagesactions'); + add_submenu_item(elgg_echo('pages:label:edit'), "pg/pages/edit/{$page[1]}", 'pagesactions'); } - add_submenu_item(elgg_echo('pages:label:history'), $CONFIG->url . "pg/pages/history/{$page[1]}", 'pageslinks'); + add_submenu_item(elgg_echo('pages:label:history'), "pg/pages/history/{$page[1]}", 'pageslinks'); include($CONFIG->pluginspath . "pages/history.php"); break; |