Ignore:
Timestamp:
Nov 11, 2011, 2:57:12 PM (12 years ago)
Author:
mistic100
Message:

some more modifications for Subscribe_to_comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/include/coa_admin_comments.php

    r11874 r12601  
    4646    else
    4747    {
     48      include_once(COA_PATH.'include/functions_comment.inc.php');
    4849      check_input_parameter('comments', $_POST, true, PATTERN_ID);
    4950
    5051      if (isset($_POST['validate_albums']))
    5152      {
    52         $query = '
    53 UPDATE '.COA_TABLE.'
    54   SET validated = \'true\',
    55       validation_date = NOW()
    56   WHERE id IN ('.implode(',', $_POST['comments']).')
    57 ;';
    58         pwg_query($query);
     53        validate_user_comment_albums($_POST['comments']);
    5954
    6055        array_push(
     
    6964      if (isset($_POST['reject_albums']))
    7065      {
    71         $query = '
    72 DELETE
    73   FROM '.COA_TABLE.'
    74   WHERE id IN ('.implode(',', $_POST['comments']).')
    75 ;';
    76         pwg_query($query);
     66        delete_user_comment_albums($_POST['comments']);
    7767
    7868        array_push(
Note: See TracChangeset for help on using the changeset viewer.