Do not expose wcf.media.imageDimensions.value to JavaScript
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 9 Mar 2021 14:23:11 +0000 (15:23 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 9 Mar 2021 14:23:11 +0000 (15:23 +0100)
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
wcfsetup/install/files/acp/templates/mediaJavaScript.tpl

index b9016db0778247eafaa6b19b9c61a67c869d782e..fc93714abd0e4256ee17de8fe2989f916ed81b3c 100644 (file)
@@ -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}',
index b9016db0778247eafaa6b19b9c61a67c869d782e..fc93714abd0e4256ee17de8fe2989f916ed81b3c 100644 (file)
@@ -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}',