summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-04 18:52:52 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-04 18:52:52 +0200
commit95fda3c17c6d03bead4b6a754f1e9a71d3cc7e50 (patch)
tree3a1a8edbfcecad2c079b0bcca627e9fb1d04886b /lib/base.php
parentd4ffafe4674dbda984c78ea9f7db894156e2a764 (diff)
downloadnextcloud-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.php2
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();