• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Template Bug

wmtech

Well-known member
#1
There is a bug in the template "xengallery_search_result_media". The variable $media should be referenced as $item (as $media is not available to this template). Because of this bug, content of ignored members is shown in search results and data-author is always empty.

Bugfix:

Change the line

Code:
<li id="media-{$item.media_id}" class="searchResult media primaryContent{xen:if $media.isIgnored, ' ignored'}" data-author="{$media.username}">
to this

Code:
<li id="media-{$item.media_id}" class="searchResult media primaryContent{xen:if $item.isIgnored, ' ignored'}" data-author="{$item.username}">