ignore core

This commit is contained in:
Bernhard Posselt 2015-01-14 15:27:37 +01:00
parent 4ec4914bb4
commit 6737dd111d
1 changed files with 4 additions and 1 deletions

View File

@ -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)) {
// core js files need separate handling
if ($application !== 'core' && $file !== null) {
self::addTranslations($application);
}
self::$scripts[] = $path;
}
}