Do not load apps when upgrade is needed
This prevents routes like "core/js/oc.js" to automatically load apps and trigger their update prematurely.
This commit is contained in:
parent
d4ffafe467
commit
95fda3c17c
|
@ -730,7 +730,7 @@ class OC {
|
|||
|
||||
if (!self::$CLI and (!isset($_GET["logout"]) or ($_GET["logout"] !== 'true'))) {
|
||||
try {
|
||||
if (!OC_Config::getValue('maintenance', false)) {
|
||||
if (!OC_Config::getValue('maintenance', false) && !self::needUpgrade()) {
|
||||
OC_App::loadApps();
|
||||
}
|
||||
self::checkSingleUserMode();
|
||||
|
|
Loading…
Reference in New Issue