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
2af55370
Commit
2af55370
authored
Jul 16, 2012
by
matslats
Committed by
tim.plunkett
Oct 21, 2012
Browse files
Issue
#1472048
by matslats: Fixed views_handler_field_user_language()->render_link().
parent
ac637c3f
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/user/views_handler_field_user_language.inc
View file @
2af55370
...
...
@@ -14,10 +14,13 @@ class views_handler_field_user_language extends views_handler_field_user {
function
render_link
(
$data
,
$values
)
{
$uid
=
$this
->
get_value
(
$values
,
'uid'
);
if
(
!
empty
(
$this
->
options
[
'link_to_user'
])
&&
user_access
(
'access user profiles'
)
&&
$uid
)
{
if
(
!
empty
(
$this
->
options
[
'link_to_user'
]))
{
$uid
=
$this
->
get_value
(
$values
,
'uid'
);
if
(
user_access
(
'access user profiles'
)
&&
$uid
)
{
$this
->
options
[
'alter'
][
'make_link'
]
=
TRUE
;
$this
->
options
[
'alter'
][
'path'
]
=
'user/'
.
$uid
;
}
}
if
(
empty
(
$data
))
{
$lang
=
language_default
();
}
...
...
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