From 1cacf769d1a474dd946a1c89b7268f8feeecc566 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Tue, 30 Dec 2008 21:00:47 +0000 Subject: Make the url parameter optional in comment::create() (according to the comment model) --- modules/comment/helpers/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/helpers/comment.php') 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; -- cgit v1.2.3