diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-22 12:02:23 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-23 11:35:33 +0300 |
commit | 28fa1e3c7d8b1981df455b3c769121a83093d652 (patch) | |
tree | 725837307534c79fcd5e4377001c3cb899ddf762 /lib/private/Template/JSResourceLocator.php | |
parent | e3a2b9e3e6db6d5b5c32a5e0b345447b20fa15a1 (diff) |
Load apps/APP/l10n/*.js and themes/THEME/apps/APP/l10n/*.js
Before it quit right after finding the theme version of the l10n file which results in a not translated part of the UI.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Template/JSResourceLocator.php')
-rw-r--r-- | lib/private/Template/JSResourceLocator.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php index d38488e4618..8b23a8d1486 100644 --- a/lib/private/Template/JSResourceLocator.php +++ b/lib/private/Template/JSResourceLocator.php @@ -55,6 +55,7 @@ class JSResourceLocator extends ResourceLocator { $found += $this->appendIfExist($this->serverroot, $theme_dir.'core/'.$script.'.js'); $found += $this->appendIfExist($this->serverroot, $script.'.js'); $found += $this->appendIfExist($this->serverroot, $theme_dir.$script.'.js'); + $found += $this->appendIfExist($this->serverroot, 'apps/'.$script.'.js'); $found += $this->appendIfExist($this->serverroot, $theme_dir.'apps/'.$script.'.js'); if ($found) { |