Ignore:
Timestamp:
Nov 6, 2011, 7:38:13 PM (12 years ago)
Author:
mistic100
Message:

minor changes for Piwigo 2.3.1 and Subscribe To Comments plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/include/functions_comment.inc.php

    r11327 r12562  
    4343 * Tries to insert a user comment in the database and returns one of :
    4444 * validate, moderate, reject
    45  * @param array comm contains author, content, image_id
     45 * @param array comm contains author, content, category_id
    4646 * @param string key secret key sent back to the browser
    4747 * @param array infos out array of messages
     
    103103  }
    104104
    105   if ( !verify_ephemeral_key(@$key, $comm['image_id']) )
     105  if ( !verify_ephemeral_key(@$key, $comm['category_id']) )
    106106  {
    107107    $comment_action='reject';
     
    141141    \''.($comment_action=='validate' ? 'true':'false').'\',
    142142    '.($comment_action=='validate' ? 'NOW()':'NULL').',
    143     '.$comm['image_id'].'
     143    '.$comm['category_id'].'
    144144  )
    145145';
     
    207207                  ));
    208208  }
     209 
     210  trigger_action('user_comment_deletion', $comment_id, 'category');
    209211}
    210212
     
    225227  $comment_action = 'validate';
    226228
    227   if ( !verify_ephemeral_key($post_key, $comment['image_id']) )
     229  if ( !verify_ephemeral_key($post_key, $comment['category_id']) )
    228230  {
    229231    $comment_action='reject';
     
    373375;';
    374376  pwg_query($query);
     377 
     378  trigger_action('user_comment_validation', $comment_id, 'category');
    375379}
    376380?>
Note: See TracChangeset for help on using the changeset viewer.