// Refacto of cartController

This commit is contained in:
rMalie
2011-09-28 15:40:28 +00:00
parent 7fb6d6dbd3
commit 6424bf8541
6 changed files with 263 additions and 228 deletions

View File

@@ -662,6 +662,17 @@ class FrontControllerCore extends Controller
return $allowed;
}
/**
* Check if token is valid
*
* @since 1.5.0
* @return bool
*/
public function isTokenValid()
{
return Configuration::get('PS_TOKEN_ENABLE') && strcasecmp(Tools::getToken(false), Tools::getValue('token')) && $this->context->customer->isLogged();
}
/**
* Add one or several CSS for front, checking if css files are overriden in theme/css/modules/ directory
*