load script and styles on setup page

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-09-19 10:50:16 +02:00 committed by John Molakvoæ
parent 16bfe0cc65
commit 1fffa3eae0
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -32,6 +32,7 @@
namespace OC\Core\Controller;
use OC\Setup;
use OCP\Util;
use Psr\Log\LoggerInterface;
class SetupController {
@ -96,6 +97,13 @@ class SetupController {
];
$parameters = array_merge($defaults, $post);
Util::addStyle('server', null);
// include common nextcloud webpack bundle
Util::addScript('core', 'common');
Util::addScript('core', 'main');
Util::addTranslations('core');
\OC_Template::printGuestPage('', 'installation', $parameters);
}