]> source.dussan.org Git - nextcloud-server.git/commitdiff
Load apps/APP/l10n/*.js and themes/THEME/apps/APP/l10n/*.js 11990/head
authorMorris Jobke <hey@morrisjobke.de>
Mon, 22 Oct 2018 09:02:23 +0000 (11:02 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 23 Oct 2018 08:22:47 +0000 (10:22 +0200)
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>
lib/private/Template/JSResourceLocator.php

index d38488e46188de1e217c04cd6e823c8de7919d40..8b23a8d14863d98b22185e4791dd957d6c538ccd 100644 (file)
@@ -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) {