- Patch #8996 by James: theme_user_picture() linked to bad url.

4.5.x
Dries Buytaert 2004-07-02 18:13:45 +00:00
parent 07d490058e
commit d279d16ccb
2 changed files with 2 additions and 2 deletions

View File

@ -571,7 +571,7 @@ function theme_user_picture($account) {
if ($picture) {
$picture = "<img src=\"$picture\" alt=\"" . t('%user\'s picture', array('%user' => $account->name ? $account->name : t(variable_get('anonymous', 'Anonymous')))) . '" />';
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>";

View File

@ -571,7 +571,7 @@ function theme_user_picture($account) {
if ($picture) {
$picture = "<img src=\"$picture\" alt=\"" . t('%user\'s picture', array('%user' => $account->name ? $account->name : t(variable_get('anonymous', 'Anonymous')))) . '" />';
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>";