diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-07-17 19:30:47 +0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-07-17 19:30:47 +0400 |
commit | 87547f8e0db984932d66752c0591d98eeaa96326 (patch) | |
tree | 6742a28b6a7a72db490ef3cc5db738efbe2079f5 /upgrade.php | |
parent | 6a4221732d80e84db881d774446e4625e7b65f44 (diff) |
Adjust to latest changes in PR #4047
Diffstat (limited to 'upgrade.php')
-rw-r--r-- | upgrade.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/upgrade.php b/upgrade.php index abdff1c9fb7..407b5ba42c8 100644 --- a/upgrade.php +++ b/upgrade.php @@ -33,29 +33,29 @@ if(!OC_Config::getValue('installed', false)) { $br = OC::$CLI ? PHP_EOL : '<br/>'; if(OC::checkUpgrade(false)) { - $updater = new \OC\Updater(); + $updater = new \OC_Updater(); - $updater->listen('\OC\Updater', 'maintenanceStart', function () use ($br) { + $updater->listen('\OC_Updater', 'maintenanceStart', function () use ($br) { echo 'Turned on maintenance mode'.$br; }); - $updater->listen('\OC\Updater', 'maintenanceEnd', function () use ($br) { + $updater->listen('\OC_Updater', 'maintenanceEnd', function () use ($br) { echo 'Turned off maintenance mode'.$br; }); - $updater->listen('\OC\Updater', 'dbUpgrade', function () use ($br) { + $updater->listen('\OC_Updater', 'dbUpgrade', function () use ($br) { echo 'Updated database'.$br; }); - $updater->listen('\OC\Updater', 'filecacheStart', function () use ($br) { + $updater->listen('\OC_Updater', 'filecacheStart', function () use ($br) { echo 'Updating filecache, this may take really long...'.$br; }); - $updater->listen('\OC\Updater', 'filecacheDone', function () use ($br) { + $updater->listen('\OC_Updater', 'filecacheDone', function () use ($br) { echo 'Updated filecache'.$br; }); - $updater->listen('\OC\Updater', 'filecacheProgress', function ($out) + $updater->listen('\OC_Updater', 'filecacheProgress', function ($out) use ($br) { echo '... ' . $out . '% done ...'.$br; }); - $updater->listen('\OC\Updater', 'failure', function ($message) use ($br) { + $updater->listen('\OC_Updater', 'failure', function ($message) use ($br) { echo $message.$br; OC_Config::setValue('maintenance', false); }); |