From 3c0be5156bd1f429e45f3eba4d97ea02217e55ee Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 29 Dec 2008 18:38:40 +0000 Subject: url::site is implicit in Forge actions, don't specify it a 2nd time --- modules/comment/helpers/comment.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index 79aa9ddc..3006d73d 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -53,7 +53,7 @@ class comment_Core { } static function get_add_form($item) { - $form = new Forge(url::site("comments"), "", "post"); + $form = new Forge("comments", "", "post"); $group = $form->group("add_comment")->label(_("Add comment")); $group->input("author") ->label(_("Author")) ->id("gAuthor"); $group->input("email") ->label(_("Email")) ->id("gEmail"); @@ -65,8 +65,7 @@ class comment_Core { } static function get_edit_form($comment) { - $form = new Forge( - url::site("comments/{$comment->id}?_method=put"), "", "post"); + $form = new Forge("comments/{$comment->id}?_method=put", "", "post"); $group = $form->group("edit_comment")->label(_("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