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 fb65286863
commit eda0d66bac

View File

@ -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"));
}