aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/layout/shells/content/header.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/default/layout/shells/content/header.php b/views/default/layout/shells/content/header.php
index 768f26337..6eae17251 100644
--- a/views/default/layout/shells/content/header.php
+++ b/views/default/layout/shells/content/header.php
@@ -26,8 +26,8 @@ if ($context) {
$buttons = $vars['buttons'];
} else {
if (isloggedin() && $context) {
- $username = get_loggedin_user()->username;
- $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/new/$username/");
+ $guid = get_loggedin_userid();
+ $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/new/$guid/");
$params = array(
'href' => $new_link = elgg_normalize_url($new_link),
'text' => elgg_echo("$context:new"),