From eda0d66bac96e2bd911bb6c77d0ffc36672024ac Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 6 Mar 2011 12:44:38 +0000 Subject: [PATCH] make CommentList::get_hash static, for calling from other places --- ext/comment/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index a3baf0c5..8751fb39 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -357,7 +357,7 @@ class CommentList extends SimpleExtension { * * FIXME: assumes comments are posted via HTTP... */ - public function get_hash() { + public static function get_hash() { return md5($_SERVER['REMOTE_ADDR'] . date("%Y%m%d")); }