summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-29 09:12:03 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-08-29 09:12:03 +0000
commitbceaf8f0daf1d76bb33afdef8ea231fbc855a5c2 (patch)
treecec3f6333255ce0632498c8594bd56c67a140726 /modules/comment
parentad0e8b5615f4585f78ccbe27912c2545875a77f1 (diff)
downloadbrdo-bceaf8f0daf1d76bb33afdef8ea231fbc855a5c2.tar.gz
brdo-bceaf8f0daf1d76bb33afdef8ea231fbc855a5c2.tar.bz2
#80574 Eaton and chx. Replace $_POST['edit'] with $_POST.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 86af8f0b1..80802d8d9 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -939,7 +939,7 @@ function comment_delete($cid) {
// We'll only delete if the user has confirmed the
// deletion using the form in our else clause below.
- if (is_object($comment) && is_numeric($comment->cid) && $_POST['edit']['confirm']) {
+ if (is_object($comment) && is_numeric($comment->cid) && $_POST['confirm']) {
drupal_set_message(t('The comment and all its replies have been deleted.'));
// Delete comment and its replies.
@@ -1003,7 +1003,7 @@ function comment_operations($action = NULL) {
* Menu callback; present an administrative comment listing.
*/
function comment_admin_overview($type = 'new') {
- $edit = $_POST['edit'];
+ $edit = $_POST;
if ($edit['operation'] == 'delete') {
return comment_multiple_delete_confirm();
@@ -1117,7 +1117,7 @@ function theme_comment_admin_overview($form) {
* them.
*/
function comment_multiple_delete_confirm() {
- $edit = $_POST['edit'];
+ $edit = $_POST;
$form['comments'] = array('#prefix' => '<ul>', '#suffix' => '</ul>', '#tree' => TRUE);
// array_filter() returns only elements with actual values