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

Fixed Template Bug

Discussion in 'Media Gallery Resolved Bugs' started by wmtech, Oct 27, 2015.

  1. wmtech

    wmtech Well-Known Member

    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}">
     
    imthebest likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Fixed now thanks :)
     

Share This Page