/** * Define and set handler attributes; initialize handler * * @param array $params Handler params OPTIONAL */ public function __construct(array $params = array()) { parent::__construct($params); if (\XLite\Core\Session::getInstance()->returnURL) { $this->setReturnURL(\XLite\Core\Session::getInstance()->returnURL); \XLite\Core\Session::getInstance()->returnURL = ''; $this->redirect(); } }