Allow programmatic additions to `$headContent`
authorAlexander Ebert <ebert@woltlab.com>
Fri, 24 Nov 2023 13:23:01 +0000 (14:23 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 24 Nov 2023 13:23:01 +0000 (14:23 +0100)
See https://www.woltlab.com/community/thread/302861-sprache-l%C3%A4sst-sich-als-gast-nicht-%C3%A4ndern/

com.woltlab.wcf/templates/articleList.tpl
com.woltlab.wcf/templates/categoryArticleList.tpl

index 2d39312aae53257d597c666aed4399d56ae010dd..5d1decbdb791af258d0126b9e1f2c5d5f485d3ef 100644 (file)
@@ -1,4 +1,4 @@
-{capture assign='headContent'}
+{capture append='headContent'}
        {if $pageNo < $pages}
                <link rel="next" href="{link controller='ArticleList'}pageNo={@$pageNo+1}{/link}">
        {/if}
index 12411e94f4a9cdecbb762dbb4e974dc6405fcf41..cf374ef7fb3f5cbae1c00c71ac66dbd9fee8ba9b 100644 (file)
@@ -3,7 +3,7 @@
 {capture assign='contentTitle'}{$category->getTitle()}{/capture}
 {capture assign='contentDescription'}{if $category->descriptionUseHtml}{@$category->getDescription()}{else}{$category->getDescription()}{/if}{/capture}
 
-{capture assign='headContent'}
+{capture append='headContent'}
        {if $pageNo < $pages}
                <link rel="next" href="{link controller='CategoryArticleList' object=$category}pageNo={@$pageNo+1}{/link}">
        {/if}