Updated to send to the dashboard when clicking on the "me" links.
This commit is contained in:
parent
05c8d321c1
commit
f1f7d635b7
@ -50,12 +50,13 @@ class IDF_Template_ShowUser extends Pluf_Template_Tag
|
|||||||
if ($user == null) {
|
if ($user == null) {
|
||||||
$out = (strlen($text)) ? strip_tags($text) : __('Anonymous');
|
$out = (strlen($text)) ? strip_tags($text) : __('Anonymous');
|
||||||
} else {
|
} else {
|
||||||
$url = Pluf_HTTP_URL_urlForView('IDF_Views_User::view',
|
|
||||||
array($user->login));
|
|
||||||
if (!$user->isAnonymous() and $user->id == $request->user->id) {
|
if (!$user->isAnonymous() and $user->id == $request->user->id) {
|
||||||
$utext = __('Me');
|
$utext = __('Me');
|
||||||
|
$url = Pluf_HTTP_URL_urlForView('idf_dashboard');
|
||||||
} else {
|
} else {
|
||||||
$utext = Pluf_esc($user);
|
$utext = Pluf_esc($user);
|
||||||
|
$url = Pluf_HTTP_URL_urlForView('IDF_Views_User::view',
|
||||||
|
array($user->login));
|
||||||
}
|
}
|
||||||
$out = sprintf('<a href="%s" class="username">%s</a>',
|
$out = sprintf('<a href="%s" class="username">%s</a>',
|
||||||
$url, $utext);
|
$url, $utext);
|
||||||
|
Loading…
Reference in New Issue
Block a user