Small template code optimization
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Apr 2016 15:25:14 +0000 (17:25 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Apr 2016 15:25:20 +0000 (17:25 +0200)
com.woltlab.wcf/templates/cms.tpl

index 9361492c88f522bbfbf284393acdaf521c95fb7c..bac53b2029784cd3878b6203d1367ffc4bf97a51 100644 (file)
@@ -1,7 +1,7 @@
 {include file='documentHeader'}
 
 <head>
-       <title>{if !$page->isLandingPage}{$content[title]} - {/if}{PAGE_TITLE|language}</title>
+       <title>{if !$__wcf->isLandingPage()}{$content[title]} - {/if}{PAGE_TITLE|language}</title>
        
        {include file='headInclude'}
        
@@ -12,7 +12,7 @@
 
 {include file='header'}
 
-{if $page->isLandingPage}
+{if $__wcf->isLandingPage()}
        <header class="contentHeader">
                <div class="contentHeaderTitle">
                        <h1 class="contentTitle">{PAGE_TITLE|language}</h1>