From: Matthias Schmidt Date: Sun, 1 Mar 2015 18:01:18 +0000 (+0100) Subject: Fix smiley tab if default category is empty X-Git-Tag: 2.1.1~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=698fe40510bc363a6d85baca453d40ecde888d52;p=GitHub%2FWoltLab%2FWCF.git Fix smiley tab if default category is empty --- diff --git a/com.woltlab.wcf/templates/messageFormSmilies.tpl b/com.woltlab.wcf/templates/messageFormSmilies.tpl index 114b9fc960..1490dee605 100644 --- a/com.woltlab.wcf/templates/messageFormSmilies.tpl +++ b/com.woltlab.wcf/templates/messageFormSmilies.tpl @@ -9,7 +9,8 @@
{capture assign=__defaultSmilies} - {include file='__messageFormSmilies' smilies=$__wcf->getSmileyCache()->getCategorySmilies()} + {assign var='__firstSmileyCategory' value=$smileyCategories|reset} + {include file='__messageFormSmilies' smilies=$__wcf->getSmileyCache()->getCategorySmilies($__firstSmileyCategory->categoryID)} {/capture} {if $__tabCount > 1}