use Tag/SourceSetEvent for mass editing, to ensure the standard rules are followed
This commit is contained in:
parent
3f27882f1e
commit
3c18ebd40c
1 changed files with 2 additions and 3 deletions
|
@ -337,8 +337,7 @@ class TagEdit extends Extension
|
|||
foreach ($images as $image) {
|
||||
$before = array_map('strtolower', $image->get_tag_array());
|
||||
$after = array_merge(array_diff($before, $search_set), $replace_set);
|
||||
$image->set_tags($after);
|
||||
|
||||
send_event(new TagSetEvent($image, $after));
|
||||
$last_id = $image->id;
|
||||
}
|
||||
if ($commit) {
|
||||
|
@ -371,7 +370,7 @@ class TagEdit extends Extension
|
|||
}
|
||||
|
||||
foreach ($images as $image) {
|
||||
$image->set_source($source);
|
||||
send_event(new SourceSetEvent($image, $source));
|
||||
$last_id = $image->id;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue