From 32e70e22d1d23be8354be1444ed67b5118612ead 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 36196ede..f8aa7482 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -359,7 +359,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")); }