From f6957b9d8cd9654f0eb0371ad0bf25f0f9a4b5a3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 7 Jun 2016 18:02:41 +0200 Subject: [PATCH] Improved detection of article pages --- com.woltlab.wcf/templates/pageHeaderSearch.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/pageHeaderSearch.tpl b/com.woltlab.wcf/templates/pageHeaderSearch.tpl index 407680a0f3..e3ca796d6a 100644 --- a/com.woltlab.wcf/templates/pageHeaderSearch.tpl +++ b/com.woltlab.wcf/templates/pageHeaderSearch.tpl @@ -3,7 +3,7 @@ {capture assign='__searchTypeLabel'}{lang}wcf.search.type.{if !$__searchObjectTypeName|empty}{@$__searchObjectTypeName}{else}everywhere{/if}{/lang}{/capture} {/if} -{if MODULE_ARTICLE && ($templateName == 'articleList' || $templateName == 'categoryArticleList' || $templateName == 'article')} +{if MODULE_ARTICLE && $__wcf->getActivePage() != null && ($__wcf->getActivePage()->identifier == 'com.woltlab.wcf.ArticleList' || $__wcf->getActivePage()->identifier == 'com.woltlab.wcf.CategoryArticleList' || $__wcf->getActivePage()->identifier == 'com.woltlab.wcf.Article')} {if $category|isset} {capture assign='__searchTypeLabel'}{$category->getTitle()}{/capture} {else} -- 2.20.1