* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
***************************************************************************/
function smarty_function_xsrf_token_field($params, &$smarty) {
***************************************************************************/
function smarty_function_xsrf_token_field($params, &$smarty) {
- if (Session::has('xsrf_token')) {
- return '<input type="hidden" name="token" value="' . Session::v('xsrf_token') . '" />';
+ if (S::has('xsrf_token')) {
+ return '<div style="display: none"><input type="hidden" name="token" value="' . S::v('xsrf_token') . '" /></div>';