From: Marcel Werk Date: Mon, 20 Jun 2016 16:54:27 +0000 (+0200) Subject: Fixed issues with multilingual page titles X-Git-Tag: 3.0.0_Beta_1~1387 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eb152305961506deea090197060de518dd5bb555;p=GitHub%2FWoltLab%2FWCF.git Fixed issues with multilingual page titles --- diff --git a/com.woltlab.wcf/templates/cms.tpl b/com.woltlab.wcf/templates/cms.tpl index 55111b784a..7c803e0160 100644 --- a/com.woltlab.wcf/templates/cms.tpl +++ b/com.woltlab.wcf/templates/cms.tpl @@ -1,6 +1,9 @@ +{if !$__wcf->isLandingPage()} + {capture assign='pageTitle'}{$content[title]}{/capture} + {capture assign='contentTitle'}{$content[title]}{/capture} +{/if} + {capture assign='headContent'} - - {if $page->isMultilingual} {foreach from=$page->getPageLanguages() item='pageLanguage'} {if $pageLanguage->getLanguage()} diff --git a/wcfsetup/install/files/lib/data/page/PageCache.class.php b/wcfsetup/install/files/lib/data/page/PageCache.class.php index 1213cb748c..46229ee47b 100644 --- a/wcfsetup/install/files/lib/data/page/PageCache.class.php +++ b/wcfsetup/install/files/lib/data/page/PageCache.class.php @@ -94,7 +94,7 @@ class PageCache extends SingletonFactory { return $this->cache['pageTitles'][$pageID][$languageID]; } - return $this->cache['pageTitles'][$pageID][WCF::getUser()->getLanguage()->languageID]; + return $this->cache['pageTitles'][$pageID][WCF::getLanguage()->languageID]; } else { return $this->cache['pageTitles'][$pageID][0];