summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-20 20:32:47 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-20 20:32:47 +0200
commit22db0f17a8eb558b81c9076168f814fba646d387 (patch)
treee9ecdb1cc1c0b6bf218c50317d786ae54aa94062 /core/ajax
parentf92054acf291109fd6d6ade5e2cdf708b1a4c6f7 (diff)
downloadnextcloud-server-22db0f17a8eb558b81c9076168f814fba646d387.tar.gz
nextcloud-server-22db0f17a8eb558b81c9076168f814fba646d387.zip
Fix web updater - fixes #24115
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 4bc1f4faa45..0e6c1176ac1 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -37,13 +37,13 @@ $eventSource = \OC::$server->createEventSource();
// need to send an initial message to force-init the event source,
// which will then trigger its own CSRF check and produces its own CSRF error
// message
-//$eventSource->send('success', (string)$l->t('Preparing update'));
+$eventSource->send('success', (string)$l->t('Preparing update'));
if (OC::checkUpgrade(false)) {
$config = \OC::$server->getSystemConfig();
- if ($config->getValue('upgrade.disable-web', true)) {
- $eventSource->send('failure', (string)$l->t('Updates need to be installed. Please use the command line updater.'));
+ if ($config->getValue('upgrade.disable-web', false)) {
+ $eventSource->send('failure', (string)$l->t('Please use the command line updater because automatic updating is disabled in the config.php.'));
$eventSource->close();
exit();
}