Skip to content

Commit

Permalink
version 1.1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnax committed Nov 3, 2020
1 parent d245844 commit 325346f
Show file tree
Hide file tree
Showing 11 changed files with 856 additions and 26 deletions.
8 changes: 4 additions & 4 deletions Block/Adminhtml/Modules/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ public function getThemeVersions()
];
$_themes = [];
foreach ($themes as $themeName => $path) {
$theme = $this->helper->getThemeInfo($path, $themeName);
if (empty($theme)) {
continue;
}
$theme = $this->helper->getThemeInfo($path, $themeName, false);
if (empty($theme)) {
continue;
}
$_themes[$themeName] = $theme;
}

Expand Down
8 changes: 5 additions & 3 deletions Helper/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ public function setModuleConfig(
public function setSystemValue($path, $value, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0)
{
$result = $this->_loadObject(WriterInterface::class)->save($path, $value, $scope, $scopeId);
$this->_loadObject(ReinitableConfigInterface::class)->reinit();
$this->scopeConfig->clean();
return $result;
}

public function deleteSystemValue($path, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId = 0)
{
return $this->_loadObject(WriterInterface::class)->delete($path, $scope, $scopeId);
$result = $this->_loadObject(WriterInterface::class)->delete($path, $scope, $scopeId);
$this->scopeConfig->clean();
return $result;
}

/**
Expand Down Expand Up @@ -130,7 +132,7 @@ public function isArea($area = Area::AREA_FRONTEND)

try {
$this->isArea[$area] = ($state->getAreaCode() == $area);
} catch (Exception $e) {
} catch (\Exception $e) {
$this->isArea[$area] = false;
}
}
Expand Down
Loading

0 comments on commit 325346f

Please sign in to comment.