Little optimisation to not lookup the starred info if anonymous user.
This commit is contained in:
parent
1a030ea4ed
commit
4175fe030b
@ -465,7 +465,8 @@ function IDF_Views_Issue_SummaryAndLabels($field, $issue, $extra='')
|
|||||||
$tags[] = sprintf('<a class="label" href="%s">%s</a>', $url, Pluf_esc((string) $tag));
|
$tags[] = sprintf('<a class="label" href="%s">%s</a>', $url, Pluf_esc((string) $tag));
|
||||||
}
|
}
|
||||||
$s = '';
|
$s = '';
|
||||||
if (Pluf_Model_InArray($issue->current_user, $issue->get_interested_list())) {
|
if (!$issue->current_user->isAnonymous() and
|
||||||
|
Pluf_Model_InArray($issue->current_user, $issue->get_interested_list())) {
|
||||||
$s = '<img style="vertical-align: text-bottom;" src="'.Pluf_Template_Tag_MediaUrl::url('/idf/img/star.png').'" title="'.__('On your watch list.').'" /> ';
|
$s = '<img style="vertical-align: text-bottom;" src="'.Pluf_Template_Tag_MediaUrl::url('/idf/img/star.png').'" title="'.__('On your watch list.').'" /> ';
|
||||||
}
|
}
|
||||||
$out = '';
|
$out = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user