diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-04-09 21:05:11 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-05-04 00:07:30 +0200 |
commit | ff64c87adbadd1791f08a53277eafdb2d58079d5 (patch) | |
tree | 5abbccffe7ff3e24e5c23b8a03e793ed949940c2 /core/ajax/update.php | |
parent | 41f7eb948ad09632764cd8503dcec6c5fa6093cd (diff) | |
download | nextcloud-server-ff64c87adbadd1791f08a53277eafdb2d58079d5.tar.gz nextcloud-server-ff64c87adbadd1791f08a53277eafdb2d58079d5.zip |
Connect watcher failure function to the failure signal
Diffstat (limited to 'core/ajax/update.php')
-rw-r--r-- | core/ajax/update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 9d0c6f89f1b..af469237a18 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'); |