make CommentList::get_hash static, for calling from other places

This commit is contained in:
Shish 2011-03-06 12:44:38 +00:00
parent b685c84209
commit 32e70e22d1

View File

@ -359,7 +359,7 @@ class CommentList extends SimpleExtension {
* *
* FIXME: assumes comments are posted via HTTP... * 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")); return md5($_SERVER['REMOTE_ADDR'] . date("%Y%m%d"));
} }