update source & rating if &update is set

This commit is contained in:
Daku 2012-03-08 19:13:53 +00:00
parent 4a51c73435
commit f76955123f

View File

@ -304,6 +304,12 @@ class ImageIO extends Extension {
if($handler == "merge" || isset($_GET['update'])) { if($handler == "merge" || isset($_GET['update'])) {
$merged = array_merge($image->get_tag_array(), $existing->get_tag_array()); $merged = array_merge($image->get_tag_array(), $existing->get_tag_array());
send_event(new TagSetEvent($existing, $merged)); send_event(new TagSetEvent($existing, $merged));
if(isset($_GET['rating']) && isset($_GET['update']) && file_exists("ext/rating")){
send_event(new RatingSetEvent($existing, $user, $_GET['rating']));
}
if(isset($_GET['source']) && isset($_GET['update'])){
send_event(new SourceSetEvent($existing, $_GET['source']));
}
return null; return null;
} }
else { else {