mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
ignore core
This commit is contained in:
parent
4ec4914bb4
commit
6737dd111d
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue