Don't load the apps when we need to upgrade

The loading can call functions that require new tables, like oc_jobs
This commit is contained in:
Bart Visscher 2013-06-28 17:23:40 +02:00
parent 6127fee5aa
commit 9a50a8f0cc

View file

@ -472,7 +472,7 @@ class OC {
// This includes plugins for users and filesystems as well
global $RUNTIME_NOAPPS;
global $RUNTIME_APPTYPES;
if (!$RUNTIME_NOAPPS) {
if (!$RUNTIME_NOAPPS && !self::checkUpgrade(false)) {
if ($RUNTIME_APPTYPES) {
OC_App::loadApps($RUNTIME_APPTYPES);
} else {