dont load core scritps

This commit is contained in:
Bernhard Posselt 2015-01-14 14:42:19 +01:00
parent 87f81e5926
commit 1cce1f0e6b
1 changed files with 3 additions and 1 deletions

View File

@ -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));
}
}