summaryrefslogtreecommitdiffstats
path: root/core/ajax/update.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-04-09 21:05:11 +0200
committerBart Visscher <bartv@thisnet.nl>2013-05-04 00:07:30 +0200
commitff64c87adbadd1791f08a53277eafdb2d58079d5 (patch)
tree5abbccffe7ff3e24e5c23b8a03e793ed949940c2 /core/ajax/update.php
parent41f7eb948ad09632764cd8503dcec6c5fa6093cd (diff)
downloadnextcloud-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.php2
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');