only load translsations for apps

This commit is contained in:
Bernhard Posselt 2015-01-14 13:48:21 +01:00
parent 8cb60b2366
commit d6f1ff7993
1 changed files with 3 additions and 1 deletions

View File

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