diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index 1d1be7923..230cd57c2 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -450,12 +450,15 @@ class Updates extends Controller /** * Contacts the update server for a list of necessary updates. + * + * @param bool $force Whether or not to force the redownload of existing tools + * @return string The rendered "execute" partial */ - public function onForceUpdate() + public function onForceUpdate($force = true) { try { $manager = UpdateManager::instance(); - $result = $manager->requestUpdateList(true); + $result = $manager->requestUpdateList($force); $coreHash = array_get($result, 'core.hash', false); $coreBuild = array_get($result, 'core.build', false); @@ -706,7 +709,7 @@ class Updates extends Controller 'system::project.owner' => $result['owner'], ]); - return $this->onForceUpdate(); + return $this->onForceUpdate(false); } catch (Exception $ex) { $this->handleError($ex); @@ -878,7 +881,7 @@ class Updates extends Controller } Flash::success(Lang::get("system::lang.plugins.{$bulkAction}_success")); - return $this->listRefresh('manage'); + return redirect()->refresh(); } //