Commit 2af55370 authored by matslats's avatar matslats Committed by tim.plunkett
Browse files

Issue #1472048 by matslats: Fixed views_handler_field_user_language()->render_link().

parent ac637c3f
...@@ -14,9 +14,12 @@ class views_handler_field_user_language extends views_handler_field_user { ...@@ -14,9 +14,12 @@ class views_handler_field_user_language extends views_handler_field_user {
function render_link($data, $values) { function render_link($data, $values) {
$uid = $this->get_value($values, 'uid'); $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'])) {
$this->options['alter']['make_link'] = TRUE; $uid = $this->get_value($values, 'uid');
$this->options['alter']['path'] = 'user/' . $uid; if (user_access('access user profiles') && $uid) {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = 'user/' . $uid;
}
} }
if (empty($data)) { if (empty($data)) {
$lang = language_default(); $lang = language_default();
......
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