ignore core
This commit is contained in:
parent
4ec4914bb4
commit
6737dd111d
|
@ -362,7 +362,10 @@ class OC_Util {
|
||||||
public static function addScript($application, $file = null) {
|
public static function addScript($application, $file = null) {
|
||||||
$path = OC_Util::generatePath($application, 'js', $file);
|
$path = OC_Util::generatePath($application, 'js', $file);
|
||||||
if (!in_array($path, self::$scripts)) {
|
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;
|
self::$scripts[] = $path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue