- Patch #8996 by James: theme_user_picture() linked to bad url.
parent
07d490058e
commit
d279d16ccb
|
@ -571,7 +571,7 @@ function theme_user_picture($account) {
|
||||||
if ($picture) {
|
if ($picture) {
|
||||||
$picture = "<img src=\"$picture\" alt=\"" . t('%user\'s picture', array('%user' => $account->name ? $account->name : t(variable_get('anonymous', 'Anonymous')))) . '" />';
|
$picture = "<img src=\"$picture\" alt=\"" . t('%user\'s picture', array('%user' => $account->name ? $account->name : t(variable_get('anonymous', 'Anonymous')))) . '" />';
|
||||||
if ($account->uid) {
|
if ($account->uid) {
|
||||||
$picture = l($picture, "user/view/$account->uid", array('title' => t('View user profile.')));
|
$picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')));
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<div class=\"picture\">$picture</div>";
|
return "<div class=\"picture\">$picture</div>";
|
||||||
|
|
|
@ -571,7 +571,7 @@ function theme_user_picture($account) {
|
||||||
if ($picture) {
|
if ($picture) {
|
||||||
$picture = "<img src=\"$picture\" alt=\"" . t('%user\'s picture', array('%user' => $account->name ? $account->name : t(variable_get('anonymous', 'Anonymous')))) . '" />';
|
$picture = "<img src=\"$picture\" alt=\"" . t('%user\'s picture', array('%user' => $account->name ? $account->name : t(variable_get('anonymous', 'Anonymous')))) . '" />';
|
||||||
if ($account->uid) {
|
if ($account->uid) {
|
||||||
$picture = l($picture, "user/view/$account->uid", array('title' => t('View user profile.')));
|
$picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')));
|
||||||
}
|
}
|
||||||
|
|
||||||
return "<div class=\"picture\">$picture</div>";
|
return "<div class=\"picture\">$picture</div>";
|
||||||
|
|
Loading…
Reference in New Issue