Changeset 27388 for trunk/comments.php
- Timestamp:
- Feb 16, 2014, 8:39:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/comments.php
r26761 r27388 70 70 $is_inserted = true; 71 71 } 72 72 73 73 $items_number_new[] = $number; 74 74 } … … 89 89 'clause' => '1=1') // stupid but generic 90 90 ); 91 91 92 92 trigger_action('loc_begin_comments'); 93 93 … … 266 266 $_POST['key'] 267 267 ); 268 268 269 269 switch ($comment_action) 270 270 { … … 282 282 } 283 283 } 284 284 285 285 $edit_comment = $_GET['edit']; 286 286 } … … 438 438 WHERE id IN ('.implode(',', $element_ids).') 439 439 ;'; 440 $elements = hash_from_query($query, 'id');440 $elements = query2array($query, 'id'); 441 441 442 442 // retrieving category informations 443 $query = 'SELECT id, name, permalink, uppercats 443 $query = 'SELECT id, name, permalink, uppercats 444 444 FROM '.CATEGORIES_TABLE.' 445 445 WHERE id IN ('.implode(',', $category_ids).')'; 446 $categories = hash_from_query($query, 'id');446 $categories = query2array($query, 'id'); 447 447 448 448 foreach ($comments as $comment) … … 468 468 ) 469 469 ); 470 470 471 471 $email = null; 472 472 if (!empty($comment['user_email'])) … … 489 489 'CONTENT'=>trigger_event('render_comment_content',$comment['content']), 490 490 ); 491 491 492 492 if (is_admin()) 493 493 {
Note: See TracChangeset
for help on using the changeset viewer.