Fixed missing teaser image in article boxes
authorMarcel Werk <burntime@woltlab.com>
Thu, 17 May 2018 21:47:02 +0000 (23:47 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 17 May 2018 21:47:02 +0000 (23:47 +0200)
Closes #2564

com.woltlab.wcf/templates/boxArticleList.tpl

index 3dfc32ca1c5c7304688ae412d6a31ffc410bc54f..b562cbc35d4da305b90a6eb101982552a12f720a 100644 (file)
@@ -3,7 +3,7 @@
                {foreach from=$boxArticleList item=boxArticle}
                        <li>
                                <a href="{$boxArticle->getLink()}" class="box64">
-                                       <span>{if $boxArticle->getImage()}{@$boxArticle->getImage()->getElementTag(64)}{/if}</span>
+                                       <span>{if $boxArticle->getTeaserImage()}{@$boxArticle->getTeaserImage()->getElementTag(64)}{/if}</span>
                                        
                                        <div>
                                                <h3>{$boxArticle->getTitle()}</h3>
@@ -32,8 +32,8 @@
                {foreach from=$boxArticleList item=boxArticle}
                        <li>
                                <a href="{$boxArticle->getLink()}">
-                                       {if $boxArticle->getImage() && $boxArticle->getImage()->hasThumbnail('small')}
-                                               <div class="articleListImage">{@$boxArticle->getImage()->getThumbnailTag('small')}</div>
+                                       {if $boxArticle->getTeaserImage() && $boxArticle->getTeaserImage()->hasThumbnail('small')}
+                                               <div class="articleListImage">{@$boxArticle->getTeaserImage()->getThumbnailTag('small')}</div>
                                        {/if}
                                        
                                        <h3 class="articleListTitle">{$boxArticle->getTitle()}</h3>