summaryrefslogtreecommitdiffstats
path: root/lib/private/Template/JSResourceLocator.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-22 11:02:23 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-10-22 11:02:25 +0200
commit2a17281cb60ba3495cd76f0918a5df65847a12c6 (patch)
tree3546e49c9f335832deb11ad60dedf4c8c7352efc /lib/private/Template/JSResourceLocator.php
parentd35b6513cdf799831c72022bee688230812201f8 (diff)
downloadnextcloud-server-2a17281cb60ba3495cd76f0918a5df65847a12c6.tar.gz
nextcloud-server-2a17281cb60ba3495cd76f0918a5df65847a12c6.zip
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.php1
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) {