From 45faf86cb60adc793081cd7629a261e1baad93dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 9 Mar 2021 15:23:11 +0100 Subject: [PATCH] Do not expose wcf.media.imageDimensions.value to JavaScript MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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). --- com.woltlab.wcf/templates/mediaJavaScript.tpl | 1 - wcfsetup/install/files/acp/templates/mediaJavaScript.tpl | 1 - 2 files changed, 2 deletions(-) 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}', -- 2.20.1