diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-04 21:09:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-04 21:09:24 +0000 |
commit | 7fac91c2cc4ca3dedf4459f9cdf9955e33be0f42 (patch) | |
tree | d1667c823da84a417540c3afdbcf08fc5cf6773c /modules/comment/comment.module | |
parent | 8d249c5f289f382e214297fda1bf6eec6b3961bd (diff) | |
download | brdo-7fac91c2cc4ca3dedf4459f9cdf9955e33be0f42.tar.gz brdo-7fac91c2cc4ca3dedf4459f9cdf9955e33be0f42.tar.bz2 |
- various smaller improvements
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 26e7e5aab..cee88f998 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -13,12 +13,6 @@ function comment_find($keys) { return $find; } -function comment_search() { - global $keys, $mod; - print search_form($keys); - print search_data($keys, $mod); -} - function comment_edit($id) { $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.cid = '$id'"); @@ -84,7 +78,7 @@ function comment_display($order = "date") { } function comment_admin() { - global $op, $id, $subject, $comment, $order; + global $op, $id, $mod, $keys, $subject, $comment, $order; print "<SMALL><A HREF=\"admin.php?mod=comment\">overview</A> | <A HREF=\"admin.php?mod=comment&op=search\">search comment</A></SMALL><HR>\n"; @@ -93,7 +87,8 @@ function comment_admin() { comment_edit($id); break; case "search": - comment_search(); + print search_form($keys); + print search_data($keys, $mod); break; case "Save comment": comment_save(check_input($id), check_input($subject), check_input($comment)); |