From bf3fef7084a5bc88b1bf6b72d53cdf849a7bda27 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:42:33 +0000 Subject: Refs #2598: Converted the rest of the $vars['url'] references to elgg_get_site_url() git-svn-id: http://code.elgg.org/elgg/trunk@7150 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/views/default/profile/admin_menu.php | 2 +- mod/profile/views/default/profile/menu/adminlinks.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/profile/views') diff --git a/mod/profile/views/default/profile/admin_menu.php b/mod/profile/views/default/profile/admin_menu.php index e901442c2..076cdd49c 100755 --- a/mod/profile/views/default/profile/admin_menu.php +++ b/mod/profile/views/default/profile/admin_menu.php @@ -7,7 +7,7 @@ global $CONFIG; if (isadminloggedin()){ if (get_loggedin_userid()!=elgg_get_page_owner_guid()){ $user = get_user(elgg_get_page_owner_guid()); - $url = $vars['url']; + $url = elgg_get_site_url(); $ts = time(); $token = generate_action_token($ts); diff --git a/mod/profile/views/default/profile/menu/adminlinks.php b/mod/profile/views/default/profile/menu/adminlinks.php index 020240261..c7fd99857 100644 --- a/mod/profile/views/default/profile/menu/adminlinks.php +++ b/mod/profile/views/default/profile/menu/adminlinks.php @@ -10,7 +10,7 @@ if (isadminloggedin()){ if (get_loggedin_userid()!=$vars['entity']->guid){ ?> - + isBanned()) { echo elgg_view('output/confirmlink', array('text' => elgg_echo("ban"), 'href' => elgg_get_site_url()."action/admin/user/ban?guid={$vars['entity']->guid}")); -- cgit v1.2.3