mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2490 add merge_tags notification trigger
A trigger_notify call for 'merge_tags' was added before deleting tags in the tag merge process. This allows plugins or extensions to react to tag merges.
This commit is contained in:
@@ -508,6 +508,7 @@ SELECT image_id
|
|||||||
|
|
||||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||||
|
|
||||||
|
trigger_notify('merge_tags', $params['destination_tag_id'], $merge_tag);
|
||||||
delete_tags($merge_tag);
|
delete_tags($merge_tag);
|
||||||
|
|
||||||
$image_in_merged = array_merge($image_in_dest, $image_to_add);
|
$image_in_merged = array_merge($image_in_dest, $image_to_add);
|
||||||
|
|||||||
@@ -101,6 +101,12 @@ array(
|
|||||||
'vars' => array('array', 'tag_ids'),
|
'vars' => array('array', 'tag_ids'),
|
||||||
'files' => array('admin\include\functions.inc.php (delete_tags)')
|
'files' => array('admin\include\functions.inc.php (delete_tags)')
|
||||||
),
|
),
|
||||||
|
array(
|
||||||
|
'name' => 'merge_tags',
|
||||||
|
'type' => 'trigger_notify',
|
||||||
|
'vars' => array('array', 'destination_tag_id', 'array', 'merge_tag'),
|
||||||
|
'files' => array('admin\include\ws_functions/pwg.tags.php (merge_tags)')
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'name' => 'delete_user',
|
'name' => 'delete_user',
|
||||||
'type' => 'trigger_notify',
|
'type' => 'trigger_notify',
|
||||||
|
|||||||
Reference in New Issue
Block a user