summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-01-14 13:48:21 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-14 13:48:21 +0100
commitd6f1ff79933447975127acc1961905afa5783840 (patch)
tree8a3221116f04050d72ec55a57e517e74a8cf803e /lib
parent8cb60b23660c284cf59280e31b1e262dfdb2cf4e (diff)
downloadnextcloud-server-d6f1ff79933447975127acc1961905afa5783840.tar.gz
nextcloud-server-d6f1ff79933447975127acc1961905afa5783840.zip
only load translsations for apps
Diffstat (limited to 'lib')
-rw-r--r--lib/private/util.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 5db33776173..54e4f2b1d2e 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -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;
}