Permalink
Browse files

[class:token] add "public static" keyword to static functions

  • Loading branch information...
nao-pon committed Apr 15, 2015
1 parent 12d129f commit 8779ff4292fcc8c9827e1a0f13cf4ac2c0e3bbd6
Showing with 4 additions and 4 deletions.
  1. +4 −4 html/class/token.php
View
@@ -289,7 +289,7 @@ function autoValidate($name,$clearIfValid=true)
* @deprecated
* @return bool
*/
function &quickCreate($name,$timeout = XOOPS_TOKEN_TIMEOUT)
public static function &quickCreate($name,$timeout = XOOPS_TOKEN_TIMEOUT)
{
$handler =new XoopsSingleTokenHandler();
$ret =& $handler->create($name,$timeout);
@@ -303,7 +303,7 @@ function &quickCreate($name,$timeout = XOOPS_TOKEN_TIMEOUT)
* @deprecated
* @return bool
*/
function quickValidate($name,$clearIfValid=true)
public static function quickValidate($name,$clearIfValid=true)
{
$handler = new XoopsSingleTokenHandler();
return $handler->autoValidate($name,$clearIfValid);
@@ -366,7 +366,7 @@ function autoValidate($name,$clearIfValid=true)
* @deprecated
* @return bool
*/
function &quickCreate($name,$timeout = XOOPS_TOKEN_TIMEOUT)
public static function &quickCreate($name,$timeout = XOOPS_TOKEN_TIMEOUT)
{
$handler =new XoopsMultiTokenHandler();
$ret =& $handler->create($name,$timeout);
@@ -380,7 +380,7 @@ function &quickCreate($name,$timeout = XOOPS_TOKEN_TIMEOUT)
* @deprecated
* @return bool
*/
function quickValidate($name,$clearIfValid=true)
public static function quickValidate($name,$clearIfValid=true)
{
$handler = new XoopsMultiTokenHandler();
return $handler->autoValidate($name,$clearIfValid);

0 comments on commit 8779ff4

Please sign in to comment.