From d3770f103a608588bdc9bc215360f6d975f35d38 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 3 Feb 2022 18:38:15 +0100 Subject: [PATCH] Overhauled handling of dynamic phrases in templates See https://github.com/WoltLab/WCF/issues/4657 --- templates/legalNotice.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/legalNotice.tpl b/templates/legalNotice.tpl index 2310662..24e227d 100644 --- a/templates/legalNotice.tpl +++ b/templates/legalNotice.tpl @@ -6,7 +6,7 @@
{if LEGAL_NOTICE_ADDRESS}
{lang}wcf.legalNotice.address{/lang}
-
{@LEGAL_NOTICE_ADDRESS|language|newlineToBreak}
+
{@LEGAL_NOTICE_ADDRESS|phrase|newlineToBreak}
{/if} {if $encodedEmailAddress} @@ -31,7 +31,7 @@ {if LEGAL_NOTICE_RESPONSIBLE_FOR_CONTENT}
{lang}wcf.legalNotice.responsibleForContent{/lang}
-
{@LEGAL_NOTICE_RESPONSIBLE_FOR_CONTENT|language|newlineToBreak}
+
{@LEGAL_NOTICE_RESPONSIBLE_FOR_CONTENT|phrase|newlineToBreak}
{/if} {if LEGAL_NOTICE_REGISTER} @@ -53,7 +53,7 @@

{lang}wcf.legalNotice.additionalText{/lang}

- {if LEGAL_NOTICE_ADDITIONAL_TEXT_ENABLE_HTML}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language}{else}{@LEGAL_NOTICE_ADDITIONAL_TEXT|language|newlineToBreak}{/if} + {if LEGAL_NOTICE_ADDITIONAL_TEXT_ENABLE_HTML}{@LEGAL_NOTICE_ADDITIONAL_TEXT|phrase}{else}{@LEGAL_NOTICE_ADDITIONAL_TEXT|phrase|newlineToBreak}{/if}
{event name='additionalTextFields'} -- 2.20.1