Merge pull request #168 from DakuTree/master

Shimmie API
This commit is contained in:
Shish
2012-03-09 14:02:12 -08:00
2 changed files with 72 additions and 4 deletions

View File

@ -304,6 +304,12 @@ class ImageIO extends Extension {
if($handler == "merge" || isset($_GET['update'])) {
$merged = array_merge($image->get_tag_array(), $existing->get_tag_array());
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;
}
else {