fixes #854 adding trigger on tag deletion

This commit is contained in:
Teatek
2019-02-01 14:07:56 +01:00
committed by Pierrick Le Gall
parent b29ab344e9
commit 2cf5c63ca1
2 changed files with 8 additions and 0 deletions
+2
View File
@@ -1655,6 +1655,8 @@ DELETE
;';
pwg_query($query);
trigger_notify("delete_tags", $tag_ids);
update_images_lastmodified($image_ids);
invalidate_user_cache_nb_tags();
}
+6
View File
@@ -89,6 +89,12 @@ array(
'vars' => array('array', 'ids'),
'files' => array('admin\include\functions.inc.php (delete_elements)'),
),
array(
'name' => 'delete_tags',
'type' => 'trigger_notify',
'vars' => array('array', 'tag_ids'),
'files' => array('admin\include\functions.inc.php (delete_tags)')
),
array(
'name' => 'delete_user',
'type' => 'trigger_notify',