Fixed option to disable page title on landing page (title-tag)
authorMarcel Werk <burntime@woltlab.com>
Sun, 8 Jan 2017 17:36:56 +0000 (18:36 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 8 Jan 2017 17:36:56 +0000 (18:36 +0100)
com.woltlab.wcf/templates/header.tpl

index 7869e9e309354b12523f5e9e2c50dc618a5c116c..b23cac735cd6509567d9a4b9456224e71e1c0a09 100644 (file)
@@ -3,7 +3,7 @@
 <head>
        {if !$pageTitle|isset}
                {assign var='pageTitle' value=''}
-               {if !$__wcf->isLandingPage() && $__wcf->getActivePage() != null && $__wcf->getActivePage()->getTitle()}
+               {if (!$__wcf->isLandingPage() || !USE_PAGE_TITLE_ON_LANDING_PAGE) && $__wcf->getActivePage() != null && $__wcf->getActivePage()->getTitle()}
                        {capture assign='pageTitle'}{$__wcf->getActivePage()->getTitle()}{/capture}
                {/if}
        {/if}