Skip to content

Commit

Permalink
Merge pull request #27 from leonazava/4051
Browse files Browse the repository at this point in the history
[4051] - scandiPWA version in footer is hardcoded - fixed
  • Loading branch information
carinadues authored Jul 6, 2022
2 parents 537ad70 + b6a1d73 commit 4ddba3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Block/Page/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Footer extends CoreFooter
/**
* ScandiPWA registration theme component name
*/
const SCANDIPWA_COMPONENT_NAME = 'frontend/scandipwa/scandipwa';
const SCANDIPWA_COMPONENT_NAME = 'frontend/scandipwa';

/**
* @var ListInterface
Expand Down Expand Up @@ -85,7 +85,7 @@ public function getPackageJsonData() {
$packageData = json_decode(file_get_contents($pathToTheme), true);
$this->scandiPWAPackgeVersion = $this->getScandiPWAFromPackageData($packageData);
} else {
$this->scandiPWAPackgeVersion = false;
$this->scandiPWAPackgeVersion = 'n/a';
}
}

Expand All @@ -99,7 +99,7 @@ public function getScandiPWADirectoryPath() {
$themeDirectoryPath = null;

foreach ($this->themeList as $theme) {
if ($theme->getFullPath() === self::SCANDIPWA_COMPONENT_NAME) {
if (str_contains($theme->getFullPath(), self::SCANDIPWA_COMPONENT_NAME)) {
$themeDirectoryPath = $this->componentRegistrar->getPath(
ComponentRegistrar::THEME,
$theme->getFullPath()
Expand Down

0 comments on commit 4ddba3b

Please sign in to comment.