Avoid double-loading dist/core-main.js when apps have scripts named main

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/31493/head
Julius Härtl 4 years ago
parent 23e8ae15aa
commit e8cf1a8759
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 2
      lib/private/Template/JSResourceLocator.php

@ -74,7 +74,7 @@ class JSResourceLocator extends ResourceLocator {
|| $this->cacheAndAppendCombineJsonIfExist($this->serverroot, $script.'.json')
|| $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js')
|| $this->appendIfExist($this->serverroot, 'core/'.$script.'.js')
|| $this->appendIfExist($this->serverroot, "dist/core-$scriptName.js")
|| (strpos($scriptName, '/') === -1 && $this->appendIfExist($this->serverroot, "dist/core-$scriptName.js"))
|| $this->cacheAndAppendCombineJsonIfExist($this->serverroot, 'core/'.$script.'.json')
) {
return;

Loading…
Cancel
Save