summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-01-22 18:28:33 +0100
committerGitHub <noreply@github.com>2017-01-22 18:28:33 +0100
commitbde1150d041de5535e9dd3baaaa957e5a9c7ca89 (patch)
treee365664834f6f1387d4bf63d3688887d2905afd0 /lib/base.php
parent012e52123900dcaab29989ab12b1848abe8d0a11 (diff)
parent9619584383621031f421598baf7c5c3e3c0ecd47 (diff)
downloadnextcloud-server-bde1150d041de5535e9dd3baaaa957e5a9c7ca89.tar.gz
nextcloud-server-bde1150d041de5535e9dd3baaaa957e5a9c7ca89.zip
Merge pull request #3004 from nextcloud/fix-installation-css
Fixed installation page
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php
index 23eda212f03..3ba0755eaab 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -281,7 +281,7 @@ class OC {
// render error page
$template = new OC_Template('', 'update.user', 'guest');
OC_Util::addScript('maintenance-check');
- OC_Util::addStyle('update');
+ OC_Util::addStyle('guest');
$template->printPage();
die();
}
@@ -355,7 +355,7 @@ class OC {
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 120');
- \OCP\Util::addStyle('update');
+ OC_Util::addStyle('guest');
// render error page
$template = new OC_Template('', 'update.use-cli', 'guest');
@@ -376,9 +376,9 @@ class OC {
$oldTheme = $systemConfig->getValue('theme');
$systemConfig->setValue('theme', '');
- \OCP\Util::addScript('config'); // needed for web root
- \OCP\Util::addScript('update');
- \OCP\Util::addStyle('update');
+ OC_Util::addScript('config'); // needed for web root
+ OC_Util::addScript('update');
+ OC_Util::addStyle('guest');
/** @var \OC\App\AppManager $appManager */
$appManager = \OC::$server->getAppManager();
@@ -708,6 +708,7 @@ class OC {
exit(1);
} else {
OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE);
+ OC_Util::addStyle('guest');
OC_Template::printGuestPage('', 'error', array('errors' => $errors));
exit;
}