diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-07-17 19:19:59 +0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-07-17 19:23:08 +0400 |
commit | 5b18f2fc0e76dedaec00ab020b57c1fe380ccd97 (patch) | |
tree | 1a34bbdd8e94fe2ede58d558284e96db4a4dd85f /core | |
parent | 9728192dc8a42a3408bbd62c3928cee838544fc6 (diff) |
Rerename \OC\Updater to OC_Updater, fixes broken admin page
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/update.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 309bad819c8..d530a4c7b6d 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -5,26 +5,26 @@ require_once '../../lib/base.php'; if (OC::checkUpgrade(false)) { $eventSource = new OC_EventSource(); - $updater = new \OC\Updater(); - $updater->listen('\OC\Updater', 'maintenanceStart', function () use ($eventSource) { + $updater = new OC_Updater(); + $updater->listen('\OC_Updater', 'maintenanceStart', function () use ($eventSource) { $eventSource->send('success', 'Turned on maintenance mode'); }); - $updater->listen('\OC\Updater', 'maintenanceEnd', function () use ($eventSource) { + $updater->listen('\OC_Updater', 'maintenanceEnd', function () use ($eventSource) { $eventSource->send('success', 'Turned off maintenance mode'); }); - $updater->listen('\OC\Updater', 'dbUpgrade', function () use ($eventSource) { + $updater->listen('\OC_Updater', 'dbUpgrade', function () use ($eventSource) { $eventSource->send('success', 'Updated database'); }); - $updater->listen('\OC\Updater', 'filecacheStart', function () use ($eventSource) { + $updater->listen('\OC_Updater', 'filecacheStart', function () use ($eventSource) { $eventSource->send('success', 'Updating filecache, this may take really long...'); }); - $updater->listen('\OC\Updater', 'filecacheDone', function () use ($eventSource) { + $updater->listen('\OC_Updater', 'filecacheDone', function () use ($eventSource) { $eventSource->send('success', 'Updated filecache'); }); - $updater->listen('\OC\Updater', 'filecacheProgress', function ($out) use ($eventSource) { + $updater->listen('\OC_Updater', 'filecacheProgress', function ($out) use ($eventSource) { $eventSource->send('success', '... ' . $out . '% done ...'); }); - $updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource) { + $updater->listen('\OC_Updater', 'failure', function ($message) use ($eventSource) { $eventSource->send('failure', $message); $eventSource->close(); OC_Config::setValue('maintenance', false); |