aboutsummaryrefslogtreecommitdiff
path: root/mod/profile
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:42:33 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:42:33 +0000
commitbf3fef7084a5bc88b1bf6b72d53cdf849a7bda27 (patch)
tree49e12a968704ed3ad44b738c018fb3a65eb2ff3f /mod/profile
parentbb1f45eb02bac603d67ac08cb674c4050a245c28 (diff)
downloadelgg-bf3fef7084a5bc88b1bf6b72d53cdf849a7bda27.tar.gz
elgg-bf3fef7084a5bc88b1bf6b72d53cdf849a7bda27.tar.bz2
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
Diffstat (limited to 'mod/profile')
-rwxr-xr-xmod/profile/views/default/profile/admin_menu.php2
-rw-r--r--mod/profile/views/default/profile/menu/adminlinks.php2
2 files changed, 2 insertions, 2 deletions
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){
?>
- <a href="<?php echo $vars['url']; ?>pg/settings/user/<?php echo $vars['entity']->username; ?>/"><?php echo elgg_echo('profile:editdetails'); ?></a>
+ <a href="<?php echo elgg_get_site_url(); ?>pg/settings/user/<?php echo $vars['entity']->username; ?>/"><?php echo elgg_echo('profile:editdetails'); ?></a>
<?php
if (!$vars['entity']->isBanned()) {
echo elgg_view('output/confirmlink', array('text' => elgg_echo("ban"), 'href' => elgg_get_site_url()."action/admin/user/ban?guid={$vars['entity']->guid}"));