diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-04 18:52:52 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-04 18:52:52 +0200 |
commit | 95fda3c17c6d03bead4b6a754f1e9a71d3cc7e50 (patch) | |
tree | 3a1a8edbfcecad2c079b0bcca627e9fb1d04886b /lib/base.php | |
parent | d4ffafe4674dbda984c78ea9f7db894156e2a764 (diff) | |
download | nextcloud-server-95fda3c17c6d03bead4b6a754f1e9a71d3cc7e50.tar.gz nextcloud-server-95fda3c17c6d03bead4b6a754f1e9a71d3cc7e50.zip |
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.
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 376bb6c1d0a..608fe16dcef 100644 --- a/lib/base.php +++ b/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(); |