From f1f7d635b7329b540bd8b7bae17b91256f29a762 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Fri, 5 Dec 2008 20:41:11 +0100 Subject: [PATCH] Updated to send to the dashboard when clicking on the "me" links. --- src/IDF/Template/ShowUser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/IDF/Template/ShowUser.php b/src/IDF/Template/ShowUser.php index 148bf38..adce102 100644 --- a/src/IDF/Template/ShowUser.php +++ b/src/IDF/Template/ShowUser.php @@ -50,12 +50,13 @@ class IDF_Template_ShowUser extends Pluf_Template_Tag if ($user == null) { $out = (strlen($text)) ? strip_tags($text) : __('Anonymous'); } else { - $url = Pluf_HTTP_URL_urlForView('IDF_Views_User::view', - array($user->login)); if (!$user->isAnonymous() and $user->id == $request->user->id) { $utext = __('Me'); + $url = Pluf_HTTP_URL_urlForView('idf_dashboard'); } else { $utext = Pluf_esc($user); + $url = Pluf_HTTP_URL_urlForView('IDF_Views_User::view', + array($user->login)); } $out = sprintf('%s', $url, $utext);