From a2901494f86dca342472c379f3268d3a5736e5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 3 Dec 2021 14:05:39 +0100 Subject: [PATCH] fixup! fixup! fixup! fixup! Split common vendor chunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/private/legacy/OC_Template.php | 2 +- lib/private/legacy/template/functions.php | 13 ++++++++++--- lib/public/Util.php | 11 ++++++++--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php index 04996a14df44f..dcca41fb1d006 100644 --- a/lib/private/legacy/OC_Template.php +++ b/lib/private/legacy/OC_Template.php @@ -112,11 +112,11 @@ public static function initTemplateEngine($renderAs) { } OC_Util::addStyle('css-variables', null, true); OC_Util::addStyle('server', null, true); - OC_Util::addTranslations('core', null, true); // include common nextcloud webpack bundle Util::addScript('core', 'common'); Util::addScript('core', 'main'); + Util::addTranslations('core'); if (\OC::$server->getSystemConfig()->getValue('installed', false) && !\OCP\Util::needUpgrade()) { Util::addScript('core', 'files_fileinfo'); diff --git a/lib/private/legacy/template/functions.php b/lib/private/legacy/template/functions.php index 6b18c9476b473..c494ba465b9e3 100644 --- a/lib/private/legacy/template/functions.php +++ b/lib/private/legacy/template/functions.php @@ -1,4 +1,7 @@ [], 'last' => []]; + } } else { $path = "l10n/$languageCode"; } - self::$scripts[$application]['first'][] = $path; + self::$scripts[$application]['last'][] = $path; } /**