From cf423f3ab4341b977e085d32e263b899f3df1152 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Sat, 30 Jul 2022 09:10:57 +0700 Subject: [PATCH] Rework method getData area --- app/code/Magento/Theme/Model/Theme.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/code/Magento/Theme/Model/Theme.php b/app/code/Magento/Theme/Model/Theme.php index 763ef5952ea06..64dda97f14b5c 100644 --- a/app/code/Magento/Theme/Model/Theme.php +++ b/app/code/Magento/Theme/Model/Theme.php @@ -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'); } /**