Skip to content

Commit

Permalink
Fix core upgrade path
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoyigi committed Jul 28, 2021
1 parent c276442 commit 8baf83b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/system/classes/UpdateManager.php
Expand Up @@ -513,6 +513,9 @@ public function extractFile($fileCode, $extractTo = null)
if ($extractTo)
$extractTo .= '/'.str_replace('.', '/', $fileCode);

if (is_null($extractTo))
$extractTo = base_path();

if (!file_exists($extractTo))
mkdir($extractTo, 0777, TRUE);

Expand Down

0 comments on commit 8baf83b

Please sign in to comment.