/** * Log out * * @return void */ protected function doActionLogoff() { \XLite\Core\Auth::getInstance()->logoff(); \Includes\Utils\Session::clearAdminCookie(); $this->setReturnURL(\XLite\Core\Converter::buildURL()); $this->getCart()->logoff(); $this->updateCart(); \XLite\Core\Database::getEM()->flush(); }
/** * Return name of the error page file (.html) * * @return string */ protected static function getErrorPageFileFromConfig() { return \Includes\Utils\Session::issetAdminCookie() ? \Includes\Utils\ConfigParser::getOptions(array('error_handling', 'page')) : \Includes\Utils\ConfigParser::getOptions(array('error_handling', 'page_customer')); }