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:
Vincent Petry 2014-06-04 18:52:52 +02:00
parent d4ffafe467
commit 95fda3c17c
1 changed files with 1 additions and 1 deletions

View File

@ -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();