aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/view.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 19:54:30 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 19:54:30 +0000
commit7dd19a4cb04803f4d05fcd109b3149c6926b6558 (patch)
treed0481513061bdc2e3ce16ecb1ad49f81d0ab706f /mod/pages/view.php
parent172bbf136ab45a5c6e4f53f911d9901797bb0020 (diff)
downloadelgg-7dd19a4cb04803f4d05fcd109b3149c6926b6558.tar.gz
elgg-7dd19a4cb04803f4d05fcd109b3149c6926b6558.tar.bz2
Refs #2463: Removed many more graituitous calls to elgg_get_site_url(), $CONFIG->url, etc.
git-svn-id: http://code.elgg.org/elgg/trunk@7198 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/view.php')
-rw-r--r--mod/pages/view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/pages/view.php b/mod/pages/view.php
index 9c6019471..bbbed6d22 100644
--- a/mod/pages/view.php
+++ b/mod/pages/view.php
@@ -31,8 +31,8 @@ global $CONFIG;
// add_submenu_item(sprintf(elgg_echo("pages:user"), elgg_get_page_owner()->name), $CONFIG->url . "pg/pages/owned/" . elgg_get_page_owner()->username, 'pageslinksgeneral');
if ($pages->canEdit()) {
- add_submenu_item(elgg_echo('pages:newchild'),elgg_get_site_url()."pg/pages/new/?parent_guid={$pages->getGUID()}&container_guid=" . elgg_get_page_owner_guid(), 'pagesactions');
- $delete_url = elgg_add_action_tokens_to_url(elgg_get_site_url()."action/pages/delete?page={$pages->getGUID()}");
+ add_submenu_item(elgg_echo('pages:newchild'), "pg/pages/new/?parent_guid={$pages->getGUID()}&container_guid=" . elgg_get_page_owner_guid(), 'pagesactions');
+ $delete_url = elgg_add_action_tokens_to_url($CONFIG->url . "action/pages/delete?page={$pages->getGUID()}");
add_submenu_item(elgg_echo('pages:delete'), $delete_url, 'pagesactions', true);
}