diff --git a/classes/TaskRunner/AllUpgradeTasks.php b/classes/TaskRunner/AllUpgradeTasks.php index 666d19b3f..bf3115626 100644 --- a/classes/TaskRunner/AllUpgradeTasks.php +++ b/classes/TaskRunner/AllUpgradeTasks.php @@ -56,7 +56,7 @@ public function run() $this->step = $result->getNext(); } - return (int) ($this->error || $this->next === 'error'); + return (int) ($this->error || $this->step === 'error'); } /** diff --git a/classes/TaskRunner/Upgrade/Download.php b/classes/TaskRunner/Upgrade/Download.php index a8e10280f..920d30237 100644 --- a/classes/TaskRunner/Upgrade/Download.php +++ b/classes/TaskRunner/Upgrade/Download.php @@ -78,7 +78,7 @@ public function run() $this->logger->info($this->translator->trans('Download complete. Now extracting...', array(), 'Modules.Autoupgrade.Admin')); } else { $this->logger->error($this->translator->trans('Download complete but MD5 sum does not match (%s).', array($md5file), 'Modules.Autoupgrade.Admin')); - $this->logger->info($this->translator->trans('Download complete but MD5 sum does not match (%s). Operation aborted.', array(), 'Modules.Autoupgrade.Admin')); + $this->logger->info($this->translator->trans('Download complete but MD5 sum does not match (%s). Operation aborted.', array($md5file), 'Modules.Autoupgrade.Admin')); $this->next = 'error'; } } else {