Connect watcher failure function to the failure signal

This commit is contained in:
Bart Visscher 2013-04-09 21:05:11 +02:00
parent 41f7eb948a
commit ff64c87adb
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ if (OC::checkUpgrade(false)) {
$watcher = new UpdateWatcher($updateEventSource);
OC_Hook::connect('update', 'success', $watcher, 'success');
OC_Hook::connect('update', 'error', $watcher, 'error');
OC_Hook::connect('update', 'error', $watcher, 'failure');
OC_Hook::connect('update', 'failure', $watcher, 'failure');
$watcher->success('Turned on maintenance mode');
try {
$result = OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');