public function preDispatch() { $result = parent::preDispatch(); $this->tool()->setInteractiveSession($this->_getSession()); if ($this->tool()->platform()->isBlocked() && 'error' != $this->getRequest()->getActionName()) { $this->_forward('error'); } return $result; }
public function preDispatch() { $result = parent::preDispatch(); if (true === $this->_getSession()->getData('aitsys_rewriter_require_rebuild')) { $this->_getSession()->unsetData('aitsys_rewriter_require_rebuild'); Mage::getModel('aitsys/rewriter')->prepare(); } return $result; }
public function preDispatch() { $result = parent::preDispatch(); if (true === $this->_getSession()->getData('aitsys_rewriter_require_rebuild')) { $this->_getSession()->unsetData('aitsys_rewriter_require_rebuild'); Mage::getModel('aitsys/rewriter')->prepare(); } $this->tool()->setInteractiveSession($this->_getSession()); if ($this->tool()->platform()->isBlocked() && 'error' != $this->getRequest()->getActionName()) { $this->_forward('error'); } return $result; }