Skip to content
Snippets Groups Projects
Commit 7f49d359 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Move checkMaintenance and checkUpgrade

This is needed to ensure that the routing and linkTo() function for CSP
are available.
parent d21946fd
No related branches found
No related tags found
Loading
......@@ -422,8 +422,6 @@ class OC
self::checkSSL();
self::initSession();
self::initTemplateEngine();
self::checkMaintenanceMode();
self::checkUpgrade();
$errors = OC_Util::checkServer();
if (count($errors) > 0) {
......@@ -563,10 +561,13 @@ class OC
return;
}
// Check if ownCloud is installed or in maintenance (update) mode
if (!OC_Config::getValue('installed', false)) {
require_once 'core/setup.php';
exit();
}
self::checkMaintenanceMode();
self::checkUpgrade();
// Handle redirect URL for logged in users
if (isset($_REQUEST['redirect_url']) && OC_User::isLoggedIn()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment