Skip to content

Commit

Permalink
Rework method getData area
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtuvn authored Jul 30, 2022
1 parent 8ff20bf commit de18fa6
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 de18fa6

Please sign in to comment.