only load translsations for apps
This commit is contained in:
parent
8cb60b2366
commit
d6f1ff7993
|
@ -365,7 +365,9 @@ 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])) {
|
||||
if (!isset(self::$loadedScriptTranslations[$application]) && $file) {
|
||||
error_log("adding " . $application . " " . $file);
|
||||
|
||||
self::addTranslations($application);
|
||||
self::$loadedScriptTranslations[$application] = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue