- Timestamp:
- Nov 6, 2011, 7:38:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/include/functions_comment.inc.php
r11327 r12562 43 43 * Tries to insert a user comment in the database and returns one of : 44 44 * validate, moderate, reject 45 * @param array comm contains author, content, image_id45 * @param array comm contains author, content, category_id 46 46 * @param string key secret key sent back to the browser 47 47 * @param array infos out array of messages … … 103 103 } 104 104 105 if ( !verify_ephemeral_key(@$key, $comm[' image_id']) )105 if ( !verify_ephemeral_key(@$key, $comm['category_id']) ) 106 106 { 107 107 $comment_action='reject'; … … 141 141 \''.($comment_action=='validate' ? 'true':'false').'\', 142 142 '.($comment_action=='validate' ? 'NOW()':'NULL').', 143 '.$comm[' image_id'].'143 '.$comm['category_id'].' 144 144 ) 145 145 '; … … 207 207 )); 208 208 } 209 210 trigger_action('user_comment_deletion', $comment_id, 'category'); 209 211 } 210 212 … … 225 227 $comment_action = 'validate'; 226 228 227 if ( !verify_ephemeral_key($post_key, $comment[' image_id']) )229 if ( !verify_ephemeral_key($post_key, $comment['category_id']) ) 228 230 { 229 231 $comment_action='reject'; … … 373 375 ;'; 374 376 pwg_query($query); 377 378 trigger_action('user_comment_validation', $comment_id, 'category'); 375 379 } 376 380 ?>
Note: See TracChangeset
for help on using the changeset viewer.