Skip to content

Commit cf423f3

Browse files
committed
Rework method getData area
1 parent 9ca52d2 commit cf423f3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/code/Magento/Theme/Model/Theme.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,7 @@ public function getParentTheme()
267267
*/
268268
public function getArea()
269269
{
270-
// In order to support environment emulation of area, if area is set, return it
271-
if ($this->getData('area') && !$this->_appState->isAreaCodeEmulated()) {
272-
return $this->getData('area');
273-
}
274-
return $this->_appState->getAreaCode();
270+
return $this->getData('area');
275271
}
276272

277273
/**

0 commit comments

Comments
 (0)