From 95f1440ef22dcfec43f19909292b2c357ceab5aa Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 29 Dec 2008 19:37:19 +0000 Subject: Changes to the comment module to support spam filtering. Basically added two columns to the comment table. The url of the author's web site(default null) and a flag to indicate that the comment is visible (default true). The comment block has changed to only display comments that are visible. And there is code added to call the spam_filter helper if the spam_filter module is installed. --- modules/comment/models/comment.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/comment/models') diff --git a/modules/comment/models/comment.php b/modules/comment/models/comment.php index b1eb37b7..4c4a8729 100644 --- a/modules/comment/models/comment.php +++ b/modules/comment/models/comment.php @@ -21,5 +21,6 @@ class Comment_Model extends ORM { var $rules = array( "author" => "required", "email" => "required|valid_email", + "url" => "valid_url", "text" => "required"); } -- cgit v1.2.3