`urlArgs` in `require.config.js` breaks the compiler
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Apr 2017 13:14:34 +0000 (15:14 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Apr 2017 13:14:34 +0000 (15:14 +0200)
See #2189

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

index f770234982ac2e8cf333cd29739246cbd290872a..11b06b4c597fff52d398b9e2a103171d9c9d3788 100644 (file)
@@ -22,7 +22,8 @@
 {js application='wcf' file='closest' bundle='WoltLabSuite.Core' core='true'}
 <script>
 requirejs.config({
-       baseUrl: '{@$__wcf->getPath()}js'
+       baseUrl: '{@$__wcf->getPath()}js', 
+       urlArgs: 't=' + window.LAST_UPDATE_TIME
        {hascontent}
        , paths: {
                {content}{event name='requirePaths'}{/content}
index 90ddb01c79f8797cb0939b434128ac571581a725..ab749d7cdb3da3421c9414f2fdaf7900c56a7e05 100644 (file)
@@ -34,7 +34,8 @@
        {js application='wcf' file='closest' bundle='WoltLabSuite.Core' core='true'}
        <script>
                requirejs.config({
-                       baseUrl: '{@$__wcf->getPath()}js'
+                       baseUrl: '{@$__wcf->getPath()}js',
+                       urlArgs: 't=' + window.LAST_UPDATE_TIME
                        {hascontent}
                        , paths: {
                                {content}{event name='requirePaths'}{/content}
index 4beb37ecefb5e8480f07ee45e82348576a1f750e..4c49637ef4c66f5898fab3b2037a2254b59a700c 100644 (file)
@@ -45,7 +45,6 @@ requirejs.config({
                        'User': 'WoltLabSuite/Core/User'
                }
        },
-       urlArgs: 't=' + window.LAST_UPDATE_TIME,
        waitSeconds: 0
 });