diff --git a/modules/system/classes/UpdateManager.php b/modules/system/classes/UpdateManager.php index 53ba96468..0aed46961 100644 --- a/modules/system/classes/UpdateManager.php +++ b/modules/system/classes/UpdateManager.php @@ -582,7 +582,7 @@ class UpdateManager $fileCode = $name . $hash; $filePath = $this->getFilePath($fileCode); - if (!Zip::extract($filePath, $this->baseDirectory . '/plugins/')) { + if (!Zip::extract($filePath, plugins_path())) { throw new ApplicationException(Lang::get('system::lang.zip.extract_failed', ['file' => $filePath])); } @@ -624,7 +624,7 @@ class UpdateManager $fileCode = $name . $hash; $filePath = $this->getFilePath($fileCode); - if (!Zip::extract($filePath, $this->baseDirectory . '/themes/')) { + if (!Zip::extract($filePath, themes_path())) { throw new ApplicationException(Lang::get('system::lang.zip.extract_failed', ['file' => $filePath])); }