Skip to content

Commit

Permalink
fix: feedback reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Dec 18, 2024
1 parent b552539 commit 207af44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion _dev/src/ts/pages/UpdatePageVersionChoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export default class UpdatePageVersionChoice extends UpdatePage {

#onClickDialogLink = async (event: MouseEvent) => {
const target = event.target as HTMLAnchorElement;
console.log('click');

// Checks if the clicked element is an <a> tag pointing towards an ID
if (!target || target.tagName !== 'A' || !target.hash) {
Expand Down
10 changes: 4 additions & 6 deletions classes/UpgradeContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,12 +463,10 @@ public function getUpgrader(): Upgrader
define('_PS_ROOT_DIR_', $this->getProperty(self::PS_ROOT_PATH));
}

$currentPrestashopVersion = $this->getProperty(self::PS_VERSION);
$phpRequirementService = new PhpVersionResolverService(new DistributionApiService(), $this->getFileLoader(), $currentPrestashopVersion);
$upgrader = new Upgrader(
$phpRequirementService,
$this->getPhpVersionResolverService(),
$this->getUpgradeConfiguration(),
$currentPrestashopVersion
$this->getProperty(self::PS_VERSION)
);

$this->upgrader = $upgrader;
Expand Down Expand Up @@ -748,8 +746,8 @@ public function getUpgradeSelfCheck(): UpgradeSelfCheck
$this->getTranslator(),
$this->getPhpVersionResolverService(),
$this->getChecksumCompare(),
_PS_ROOT_DIR_,
_PS_ADMIN_DIR_,
$this->psRootDir,
$this->adminDir,
$this->getProperty(UpgradeContainer::WORKSPACE_PATH)
);

Expand Down

0 comments on commit 207af44

Please sign in to comment.