Commit d279d16c authored by Dries's avatar Dries

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

parent 07d49005
......@@ -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>";
......
......@@ -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>";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment