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.
remotes/origin/ldap_group_count
Vincent Petry 11 years ago
parent d4ffafe467
commit 95fda3c17c
  1. 2
      lib/base.php

@ -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…
Cancel
Save