Fixes coding style in the last 4 commits (uses S:: instead of Session::).
[platal.git] / plugins / function.xsrf_token_field.php
index 28f09b8..8eb2430 100644 (file)
@@ -20,8 +20,8 @@
  ***************************************************************************/
 
 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 '<input type="hidden" name="token" value="' . S::v('xsrf_token') . '" />';
     }
     return '';
 }