From 81a0698f97c9e92639109caa5215a503b823b968 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 13:33:58 +0000 Subject: 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 --- views/default/layout/shells/content/header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/layout/shells/content') 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"), -- cgit v1.2.3