From ff64c87adbadd1791f08a53277eafdb2d58079d5 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 9 Apr 2013 21:05:11 +0200 Subject: [PATCH] Connect watcher failure function to the failure signal --- core/ajax/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ajax/update.php b/core/ajax/update.php index 9d0c6f89f1..af469237a1 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -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');