diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-29 19:37:19 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-29 19:37:19 +0000 |
commit | 95f1440ef22dcfec43f19909292b2c357ceab5aa (patch) | |
tree | 2f702c293bdf0c5622992cc6dd263db39853f342 /modules/comment/models | |
parent | 3c0be5156bd1f429e45f3eba4d97ea02217e55ee (diff) |
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.
Diffstat (limited to 'modules/comment/models')
-rw-r--r-- | modules/comment/models/comment.php | 1 |
1 files changed, 1 insertions, 0 deletions
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"); } |