From 1a2cb5ff043d19736f45d2e845eb44bd32305afe Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 16 Nov 2008 19:23:41 +0000 Subject: Put _method into the edit form's url; Implement Comment::_put() properly --- modules/comment/helpers/comment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/comment/helpers/comment.php') diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 8352fae4..b5d57829 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -66,7 +66,8 @@ class Comment_Core { } static function get_edit_form($comment) { - $form = new Forge(url::site("comment/{$comment->id}"), "", "post", array("id" => "gCommentForm")); + $form = new Forge( + url::site("comment/{$comment->id}?_method=put"), "", "post", array("id" => "gCommentForm")); $group = $form->group(_("Edit Comment")); $group->input("author") ->label(_("Author")) ->id("gAuthor") ->value($comment->author); $group->input("email") ->label(_("Email")) ->id("gEmail") ->value($comment->email); -- cgit v1.2.3