diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-13 18:36:38 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-13 18:36:38 +0000 |
commit | c2d2fb73095a32394dd95e72421aec49fa2cd6f6 (patch) | |
tree | 5d2d92a31480405b8c10c3b85927049238528242 /modules/comment.module | |
parent | 13ffd8956826fec3cd9978edf73ef67d9eb8d46e (diff) | |
download | brdo-c2d2fb73095a32394dd95e72421aec49fa2cd6f6.tar.gz brdo-c2d2fb73095a32394dd95e72421aec49fa2cd6f6.tar.bz2 |
- Fixed a typo in the PostgreSQL database scheme. Patch by Michael Frankowski.
- Fixed a typo in the MSSQL database scheme. Patch by Michael Frankowski.
- Removed dependency on "register_globals = on"! Patches by Michael Frankowski.
Notes:
+ Updated the patches to use $foo["bar"] instead of $foo['bar'].
+ Updated the INSTALL and CHANGELOG files as well.
- Tiny improvement to the "./scripts/code-clean.sh" script.
Diffstat (limited to 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/modules/comment.module b/modules/comment.module index d7b042b96..c52e37c94 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -676,7 +676,8 @@ function comment_link($type, $node = 0, $main = 0) { } function comment_page() { - global $op, $edit; + $op = $_POST["op"]; + $edit = $_POST["edit"]; if (empty($op)) { $op = arg(1); @@ -880,7 +881,7 @@ function comment_mod_roles($edit) { } function comment_mod_votes($edit) { - global $op; + $op = $_POST["op"]; $mid = arg(3); @@ -928,7 +929,7 @@ function comment_mod_votes($edit) { } function comment_mod_filters($edit) { - global $op; + $op = $_POST["op"]; $fid = arg(3); @@ -978,7 +979,10 @@ function comment_mod_filters($edit) { function comment_admin() { - global $op, $id, $edit, $mod, $keys, $order, $status, $comment_page, $comment_settings; + global $id, $mod, $keys, $order, $status, $comment_page, $comment_settings; + + $op = $_POST["op"]; + $edit = $_POST["edit"]; if (empty($op)) { $op = arg(2); @@ -1122,9 +1126,11 @@ function comment_controls($threshold = 1, $mode = 3, $order = 1, $nid, $page = 0 } function comment_moderation_form($comment) { - global $comment_votes, $op, $user, $node; + global $comment_votes, $user, $node; static $votes; + $op = $_POST["op"]; + if ($op == "reply") { // preview comment: $output .= " "; @@ -1393,7 +1399,6 @@ function comment_already_moderated($uid, $users) { } function comment_search($keys) { - global $PHP_SELF; /* ** Return the results of performing a search using the indexed search |