Changeset 16106 for extensions
- Timestamp:
- Jun 27, 2012, 11:14:46 PM (12 years ago)
- Location:
- extensions/Subscribe_to_comments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Subscribe_to_comments/include/subscribe_to_comments.inc.php
r16105 r16106 379 379 $query = ' 380 380 DELETE FROM '.SUBSCRIBE_TO_TABLE.' 381 WHERE element_id IN ('.implode(',', $ids).') 381 WHERE 382 element_id IN ('.implode(',', $ids).') 383 AND type = "image" 382 384 '; 383 385 pwg_query($query); 384 386 } 387 function stc_delete_categories($ids) 388 { 389 $query = ' 390 DELETE FROM '.SUBSCRIBE_TO_TABLE.' 391 WHERE 392 element_id IN ('.implode(',', $ids).') 393 AND (type = "album" OR type = "album-images") 394 '; 395 pwg_query($query); 396 } 385 397 386 398 -
extensions/Subscribe_to_comments/main.inc.php
r16105 r16106 45 45 // items deletion 46 46 add_event_handler('begin_delete_elements', 'stc_delete_elements'); 47 add_event_handler('delete_categories', 'stc_delete_ elements');47 add_event_handler('delete_categories', 'stc_delete_categories'); 48 48 49 49 // profile link
Note: See TracChangeset
for help on using the changeset viewer.