From 849be203e3aa5edcfbff7520ee6b1a1529126963 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 2 May 2016 17:35:31 +0200 Subject: [PATCH] Use of `concat` instead of `{capture}` --- .../files/acp/templates/__pageAddContent.tpl | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/__pageAddContent.tpl b/wcfsetup/install/files/acp/templates/__pageAddContent.tpl index 3c09c19dd0..8cd7aa98f1 100644 --- a/wcfsetup/install/files/acp/templates/__pageAddContent.tpl +++ b/wcfsetup/install/files/acp/templates/__pageAddContent.tpl @@ -1,14 +1,8 @@ {if $pageType == 'text'} - {capture assign='wysiwygSelector'}content{@$languageID}{/capture} - - {include file='wysiwyg' wysiwygSelector=$wysiwygSelector} + {include file='wysiwyg' wysiwygSelector='content'|concat:$languageID} {elseif $pageType == 'html'} - {capture assign='codemirrorSelector'}#content{@$languageID}{/capture} - - {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector=$codemirrorSelector} + {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector='#content'|concat:$languageID} {elseif $pageType == 'tpl'} - {capture assign='codemirrorSelector'}#content{@$languageID}{/capture} - - {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector=$codemirrorSelector} -{/if} \ No newline at end of file + {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector='#content'|concat:$languageID} +{/if} -- 2.20.1