diff options
author | Andy Staudacher <andy.st@gmail.com> | 2008-12-30 21:00:47 +0000 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2008-12-30 21:00:47 +0000 |
commit | 1cacf769d1a474dd946a1c89b7268f8feeecc566 (patch) | |
tree | 532e6c88b3aba760019bd245410399318d505c16 | |
parent | 06188ad813e38a41aa6058a925bd80fbcb2fbc41 (diff) |
Make the url parameter optional in comment::create() (according to the comment model)
-rw-r--r-- | modules/comment/helpers/comment.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 22f9e740..e92c59a0 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -39,7 +39,7 @@ class comment_Core { * @param string $url author's url * @return Comment_Model */ - static function create($author, $email, $text, $item_id, $url) { + static function create($author, $email, $text, $item_id, $url=null) { $comment = ORM::factory("comment"); $comment->author = $author; $comment->email = $email; |