diff options
-rw-r--r-- | modules/comment/helpers/comment.php | 5 | ||||
-rw-r--r-- | modules/tag/helpers/tag.php | 2 |
2 files changed, 3 insertions, 4 deletions
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); diff --git a/modules/tag/helpers/tag.php b/modules/tag/helpers/tag.php index b6d39213..e1cb9ec6 100644 --- a/modules/tag/helpers/tag.php +++ b/modules/tag/helpers/tag.php @@ -80,7 +80,7 @@ class tag_Core { } public static function get_add_form($item) { - $form = new Forge(url::site("tags"), "", "post", array("id" => "gAddTagForm")); + $form = new Forge("tags", "", "post", array("id" => "gAddTagForm")); $group = $form->group("add_tag")->label(_("Add Tag")); $group->input("tag_name")->label(_("Add tag")); $group->hidden("item_id")->value($item->id); |