Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
afb4242a
Commit
afb4242a
authored
Mar 06, 2007
by
Dries
Browse files
- Patch
#125232
by kkaefer: overlooked an l() convertion.
parent
273a653f
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
afb4242a
...
...
@@ -629,7 +629,7 @@ function theme_user_picture($account) {
$alt
=
t
(
"@user's picture"
,
array
(
'@user'
=>
$account
->
name
?
$account
->
name
:
variable_get
(
'anonymous'
,
t
(
'Anonymous'
))));
$picture
=
theme
(
'image'
,
$picture
,
$alt
,
$alt
,
''
,
FALSE
);
if
(
!
empty
(
$account
->
uid
)
&&
user_access
(
'access user profiles'
))
{
$picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')),
NULL, NULL, FALSE,
TRUE);
$picture
=
l
(
$picture
,
"user/
$account->uid
"
,
array
(
'attributes'
=>
array
(
'title'
=>
t
(
'View user profile.'
)),
'html'
=>
TRUE
)
)
;
}
return
"<div class=
\"
picture
\"
>
$picture
</div>"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment