diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-18 07:01:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-18 07:01:37 +0000 |
commit | 9c43f5440eb5b9c38e546d81ed763d155bbdd99a (patch) | |
tree | 2dc42172ba0d5ef960e3ef91c630e904b9405e3f | |
parent | 07ab3915c46f06f948c929d3871ac4a10c3163f3 (diff) | |
download | brdo-9c43f5440eb5b9c38e546d81ed763d155bbdd99a.tar.gz brdo-9c43f5440eb5b9c38e546d81ed763d155bbdd99a.tar.bz2 |
- Fixed some PostgreSQL issues. Reported by Michael.
- Removed some dead wood.
-rw-r--r-- | modules/comment.module | 11 | ||||
-rw-r--r-- | modules/comment/comment.module | 11 |
2 files changed, 16 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module index c52e37c94..fca716b31 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1033,7 +1033,7 @@ function comment_admin() { $status = $comment_settings["status"]; $comment_page = $comment_settings["comment_page"]; } - print comment_admin_overview(0, $comment_page); + print comment_admin_overview(0); break; case t("Submit"): print status(comment_save(check_query(arg(3)), $edit)); @@ -1041,10 +1041,15 @@ function comment_admin() { $status = $comment_settings["status"]; $comment_page = $comment_settings["comment_page"]; } - print comment_admin_overview(0, $comment_page); + print comment_admin_overview(0); break; default: - print comment_admin_overview(arg(2), $comment_page); + if (arg(2) == 1) { + print comment_admin_overview(1); + } + else { + print comment_admin_overview(0); + } } } else { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index c52e37c94..fca716b31 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1033,7 +1033,7 @@ function comment_admin() { $status = $comment_settings["status"]; $comment_page = $comment_settings["comment_page"]; } - print comment_admin_overview(0, $comment_page); + print comment_admin_overview(0); break; case t("Submit"): print status(comment_save(check_query(arg(3)), $edit)); @@ -1041,10 +1041,15 @@ function comment_admin() { $status = $comment_settings["status"]; $comment_page = $comment_settings["comment_page"]; } - print comment_admin_overview(0, $comment_page); + print comment_admin_overview(0); break; default: - print comment_admin_overview(arg(2), $comment_page); + if (arg(2) == 1) { + print comment_admin_overview(1); + } + else { + print comment_admin_overview(0); + } } } else { |