Use of `concat` instead of `{capture}`
authorAlexander Ebert <ebert@woltlab.com>
Mon, 2 May 2016 15:35:31 +0000 (17:35 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 2 May 2016 15:35:31 +0000 (17:35 +0200)
wcfsetup/install/files/acp/templates/__pageAddContent.tpl

index 3c09c19dd078053615813a4ffeba77cf11f007df..8cd7aa98f1bd7caa15bca7339148ffce489fdaca 100644 (file)
@@ -1,14 +1,8 @@
 <textarea name="content[{@$languageID}]" id="content{@$languageID}">{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
 {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}