diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-14 15:27:37 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-14 15:27:37 +0100 |
commit | 6737dd111d582973abd3f40651d4d38ca5576df3 (patch) | |
tree | e1ca441f88df0c176966eccf20333df60af3a1f6 | |
parent | 4ec4914bb4ad6ef161e9093ec1d76573626c9367 (diff) | |
download | nextcloud-server-6737dd111d582973abd3f40651d4d38ca5576df3.tar.gz nextcloud-server-6737dd111d582973abd3f40651d4d38ca5576df3.zip |
ignore core
-rw-r--r-- | lib/private/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index f544b7b6b3e..3b943f046bf 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -362,7 +362,10 @@ class OC_Util { public static function addScript($application, $file = null) { $path = OC_Util::generatePath($application, 'js', $file); if (!in_array($path, self::$scripts)) { - self::addTranslations($application); + // core js files need separate handling + if ($application !== 'core' && $file !== null) { + self::addTranslations($application); + } self::$scripts[] = $path; } } |