aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/profile/views')
-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}"));