summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-01-14 15:27:37 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-14 15:27:37 +0100
commit6737dd111d582973abd3f40651d4d38ca5576df3 (patch)
treee1ca441f88df0c176966eccf20333df60af3a1f6
parent4ec4914bb4ad6ef161e9093ec1d76573626c9367 (diff)
downloadnextcloud-server-6737dd111d582973abd3f40651d4d38ca5576df3.tar.gz
nextcloud-server-6737dd111d582973abd3f40651d4d38ca5576df3.zip
ignore core
-rw-r--r--lib/private/util.php5
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;
}
}