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