From d8df4f6c18f80a97cc4102c069a5b07c9aa7bbc4 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 29 Jul 2017 16:21:34 +1000 Subject: [PATCH] extractCore no longer needs args --- modules/system/classes/UpdateManager.php | 4 +--- modules/system/controllers/Updates.php | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/system/classes/UpdateManager.php b/modules/system/classes/UpdateManager.php index af3a9a62d..5b41ef905 100644 --- a/modules/system/classes/UpdateManager.php +++ b/modules/system/classes/UpdateManager.php @@ -435,11 +435,9 @@ class UpdateManager /** * Extracts the core after it has been downloaded. - * @param string $hash - * @param string $build * @return void */ - public function extractCore($hash, $build) + public function extractCore() { $filePath = $this->getFilePath('core'); diff --git a/modules/system/controllers/Updates.php b/modules/system/controllers/Updates.php index e321fe78f..ef8c4eccc 100644 --- a/modules/system/controllers/Updates.php +++ b/modules/system/controllers/Updates.php @@ -273,7 +273,7 @@ class Updates extends Controller break; case 'extractCore': - $manager->extractCore(post('hash'), post('build')); + $manager->extractCore(); break; case 'setBuild': @@ -603,9 +603,7 @@ class Updates extends Controller if ($coreHash) { $updateSteps[] = [ 'code' => 'extractCore', - 'label' => Lang::get('system::lang.updates.core_extracting'), - 'hash' => $coreHash, - 'build' => $coreBuild + 'label' => Lang::get('system::lang.updates.core_extracting') ]; $updateSteps[] = [