/** * Stop enviromment emulation * * Function restores initial store environment * * @param Varien_Object $initialEnvironmentInfo information about environment of the initial store * * @return Mage_Core_Model_App_Emulation */ public function stopEnvironmentEmulation(Varien_Object $initialEnvironmentInfo) { $this->_restoreInitialInlineTranslation($initialEnvironmentInfo->getInitialTranslateInline()); $initialDesign = $initialEnvironmentInfo->getInitialDesign(); $this->_restoreInitialDesign($initialDesign); // Current store needs to be changed right before locale change and after design change Mage::app()->setCurrentStore($initialDesign['store']); $this->_restoreInitialLocale($initialEnvironmentInfo->getInitialLocaleCode(), $initialDesign['area']); return $this; }