From: Tim Düsterhus Date: Tue, 9 Mar 2021 14:23:11 +0000 (+0100) Subject: Do not expose wcf.media.imageDimensions.value to JavaScript X-Git-Tag: 5.4.0_Alpha_1~170^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45faf86cb60adc793081cd7629a261e1baad93dd;p=GitHub%2FWoltLab%2FWCF.git Do not expose wcf.media.imageDimensions.value to JavaScript This language item uses PHP template syntax and thus is not compatible with JavaScript: Parse error on line 1: {#$media->width}×{#$media->h --------^ Expecting '}', got 'T_ANY' I also could not find any JavaScript users (which was expected, given that it would not work). --- diff --git a/com.woltlab.wcf/templates/mediaJavaScript.tpl b/com.woltlab.wcf/templates/mediaJavaScript.tpl index b9016db077..fc93714abd 100644 --- a/com.woltlab.wcf/templates/mediaJavaScript.tpl +++ b/com.woltlab.wcf/templates/mediaJavaScript.tpl @@ -5,7 +5,6 @@ 'wcf.media.button.replaceFile': '{jslang}wcf.media.button.replaceFile{/jslang}', 'wcf.media.button.select': '{jslang}wcf.media.button.select{/jslang}', 'wcf.media.delete.confirmMessage': '{jslang __encode=true __literal=true}wcf.media.delete.confirmMessage{/jslang}', - 'wcf.media.imageDimensions.value': '{jslang __literal=true}wcf.media.imageDimensions.value{/jslang}', 'wcf.media.insert': '{jslang}wcf.media.insert{/jslang}', 'wcf.media.insert.imageSize': '{jslang}wcf.media.insert.imageSize{/jslang}', 'wcf.media.insert.imageSize.small': '{jslang}wcf.media.insert.imageSize.small{/jslang}', diff --git a/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl b/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl index b9016db077..fc93714abd 100644 --- a/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl +++ b/wcfsetup/install/files/acp/templates/mediaJavaScript.tpl @@ -5,7 +5,6 @@ 'wcf.media.button.replaceFile': '{jslang}wcf.media.button.replaceFile{/jslang}', 'wcf.media.button.select': '{jslang}wcf.media.button.select{/jslang}', 'wcf.media.delete.confirmMessage': '{jslang __encode=true __literal=true}wcf.media.delete.confirmMessage{/jslang}', - 'wcf.media.imageDimensions.value': '{jslang __literal=true}wcf.media.imageDimensions.value{/jslang}', 'wcf.media.insert': '{jslang}wcf.media.insert{/jslang}', 'wcf.media.insert.imageSize': '{jslang}wcf.media.insert.imageSize{/jslang}', 'wcf.media.insert.imageSize.small': '{jslang}wcf.media.insert.imageSize.small{/jslang}',