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

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/38237/head
Julius Härtl 3 years ago
parent 8bdb50fd50
commit 0ebb00d01d
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 2
      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;
}

Loading…
Cancel
Save