Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Aug 30, 2022
1 parent a937a00 commit 6486a89
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/system/traits/ManagesUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,15 @@ protected function completeProcess($items)
return false;

foreach ($items as $item) {
if ($item['type'] == 'core') {
$updateManager = UpdateManager::instance();
$updateManager->update();
$updateManager->setCoreVersion($item['version'], $item['hash']);

break;
}

switch ($item['type']) {
case 'core':
$updateManager = UpdateManager::instance();
$updateManager->update();
$updateManager->setCoreVersion($item['version'], $item['hash']);
break;
case 'extension':
ExtensionManager::instance()->installExtension($item['code'], $item['version']);
break;
Expand Down

0 comments on commit 6486a89

Please sign in to comment.