Avoid unnecessary scripting
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Apr 2017 17:58:47 +0000 (19:58 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Apr 2017 17:58:47 +0000 (19:58 +0200)
See #2189

com.woltlab.wcf/templates/headIncludeJavaScript.tpl
wcfsetup/install/files/acp/templates/header.tpl

index 11b06b4c597fff52d398b9e2a103171d9c9d3788..62c44a6b03493e58a70dca5e9022250afb1cb6da 100644 (file)
@@ -23,7 +23,7 @@
 <script>
 requirejs.config({
        baseUrl: '{@$__wcf->getPath()}js', 
-       urlArgs: 't=' + window.LAST_UPDATE_TIME
+       urlArgs: 't={@LAST_UPDATE_TIME}'
        {hascontent}
        , paths: {
                {content}{event name='requirePaths'}{/content}
index ab749d7cdb3da3421c9414f2fdaf7900c56a7e05..32aefd7bab11742a4cc28fba39145b5635d9a68f 100644 (file)
@@ -35,7 +35,7 @@
        <script>
                requirejs.config({
                        baseUrl: '{@$__wcf->getPath()}js',
-                       urlArgs: 't=' + window.LAST_UPDATE_TIME
+                       urlArgs: 't={@LAST_UPDATE_TIME}'
                        {hascontent}
                        , paths: {
                                {content}{event name='requirePaths'}{/content}