Browse Source

fix: Do not attempt to use l10n files as sources for combined js files

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Julius Härtl 1 year ago
parent
commit
0ebb00d01d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/private/Template/JSResourceLocator.php

+ 1 - 1
lib/private/Template/JSResourceLocator.php

@@ -100,7 +100,7 @@ class JSResourceLocator extends ResourceLocator {
 			$app_path = realpath($app_path);
 
 			// check combined files
-			if ($this->cacheAndAppendCombineJsonIfExist($app_path, $script.'.json', $app)) {
+			if (!str_starts_with($script, 'l10n/') && $this->cacheAndAppendCombineJsonIfExist($app_path, $script.'.json', $app)) {
 				return;
 			}