diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-14 14:42:19 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-14 14:43:11 +0100 |
commit | 1cce1f0e6b9eb4ba6bbee4535076b523c97237ca (patch) | |
tree | 206e172faaabf9cfb4744f3b35fb6b6b6c0648d3 /lib | |
parent | 87f81e592620c753061de7f09e14a2c974ee5c79 (diff) | |
download | nextcloud-server-1cce1f0e6b9eb4ba6bbee4535076b523c97237ca.tar.gz nextcloud-server-1cce1f0e6b9eb4ba6bbee4535076b523c97237ca.zip |
dont load core scritps
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/util.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 54e4f2b1d2e..13208911f4e 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -365,7 +365,7 @@ class OC_Util { if (!in_array($path, self::$scripts)) { // load javascript translations if it is the first time an app's // script is loaded. - if (!isset(self::$loadedScriptTranslations[$application]) && $file) { + if (!isset(self::$loadedScriptTranslations[$application]) && $file && $application !== 'core') { error_log("adding " . $application . " " . $file); self::addTranslations($application); @@ -406,7 +406,9 @@ class OC_Util { $path = "l10n/$languageCode"; } if (!in_array($path, self::$scripts)) { + error_log("translation " . $path); self::$scripts[] = $path; + error_log(print_r(self::$scripts, true)); } } |