]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disable loading of backgroundjobs js when upgrade is needed
authorBart Visscher <bartv@thisnet.nl>
Sun, 3 Mar 2013 22:08:41 +0000 (23:08 +0100)
committerBart Visscher <bartv@thisnet.nl>
Sun, 3 Mar 2013 22:15:22 +0000 (23:15 +0100)
lib/base.php

index 98a72cb9018537aaacb1e98d8ec31efcda8f4a19..bffae36261ea7e50cc55e9332def392c3081d36f 100644 (file)
@@ -539,7 +539,7 @@ class OC {
                                'setting locale to en_US.UTF-8/en_US.UTF8 failed. Support is probably not installed on your system',
                                OC_Log::ERROR);
                }
-               if (OC_Config::getValue('installed', false)) {
+               if (OC_Config::getValue('installed', false) && !self::checkUpgrade(false)) {
                        if (OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') {
                                OC_Util::addScript('backgroundjobs');
                        }