From 6737dd111d582973abd3f40651d4d38ca5576df3 Mon Sep 17 00:00:00 2001
From: Bernhard Posselt <dev@bernhard-posselt.com>
Date: Wed, 14 Jan 2015 15:27:37 +0100
Subject: [PATCH] ignore core

---
 lib/private/util.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/private/util.php b/lib/private/util.php
index f544b7b6b3..3b943f046b 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;
 		}
 	}
-- 
GitLab