diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:33:58 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 13:33:58 +0000 |
commit | 81a0698f97c9e92639109caa5215a503b823b968 (patch) | |
tree | ec5e0ecc275881a7812b2286ef884e9721cb0253 /views | |
parent | f3193c88779111516fb21923a7991eb765e4a127 (diff) | |
download | elgg-81a0698f97c9e92639109caa5215a503b823b968.tar.gz elgg-81a0698f97c9e92639109caa5215a503b823b968.tar.bz2 |
new content link uses guid to make supporting groups and users easier
git-svn-id: http://code.elgg.org/elgg/trunk@7736 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/layout/shells/content/header.php | 4 |
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"), |