diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-03-25 09:01:09 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-03-25 09:01:09 +0100 |
commit | 3388758d046584d1425897a9b3d311c2e88b65e4 (patch) | |
tree | 4e3972191b21f9961769df33edc1818fa480eef5 /core/ajax | |
parent | c15172bc4ee6183aa0c68a8be71ff623a62031ff (diff) | |
download | nextcloud-server-3388758d046584d1425897a9b3d311c2e88b65e4.tar.gz nextcloud-server-3388758d046584d1425897a9b3d311c2e88b65e4.zip |
Remove event listener to udpate events that are not present anymore
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/update.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 09931ec91e2..6e655f42841 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -162,15 +162,6 @@ if (\OCP\Util::needUpgrade()) { $updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource, $l) { $eventSource->send('success', $l->t('Updated database')); }); - $updater->listen('\OC\Updater', 'dbSimulateUpgradeBefore', function () use ($eventSource, $l) { - $eventSource->send('success', $l->t('Checking whether the database schema can be updated (this can take a long time depending on the database size)')); - }); - $updater->listen('\OC\Updater', 'dbSimulateUpgrade', function () use ($eventSource, $l) { - $eventSource->send('success', $l->t('Checked database schema update')); - }); - $updater->listen('\OC\Updater', 'appUpgradeCheckBefore', function () use ($eventSource, $l) { - $eventSource->send('success', $l->t('Checking updates of apps')); - }); $updater->listen('\OC\Updater', 'checkAppStoreAppBefore', function ($app) use ($eventSource, $l) { $eventSource->send('success', $l->t('Checking for update of app "%s" in appstore', [$app])); }); @@ -183,9 +174,6 @@ if (\OCP\Util::needUpgrade()) { $updater->listen('\OC\Updater', 'appSimulateUpdate', function ($app) use ($eventSource, $l) { $eventSource->send('success', $l->t('Checking whether the database schema for %s can be updated (this can take a long time depending on the database size)', [$app])); }); - $updater->listen('\OC\Updater', 'appUpgradeCheck', function () use ($eventSource, $l) { - $eventSource->send('success', $l->t('Checked database schema update for apps')); - }); $updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) { $eventSource->send('success', $l->t('Updated "%1$s" to %2$s', [$app, $version])); }); |