Skip to content

Commit

Permalink
Rework method getData area
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtuvn committed Jul 31, 2022
1 parent 9ca52d2 commit cf423f3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/code/Magento/Theme/Model/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,7 @@ public function getParentTheme()
*/
public function getArea()
{
// In order to support environment emulation of area, if area is set, return it
if ($this->getData('area') && !$this->_appState->isAreaCodeEmulated()) {
return $this->getData('area');
}
return $this->_appState->getAreaCode();
return $this->getData('area');
}

/**
Expand Down

0 comments on commit cf423f3

Please sign in to comment.