move metatag parsing to after set_tags is sent, rather than before

This commit is contained in:
Daku
2015-10-08 18:58:52 +01:00
parent b11041898b
commit 43d0a297b8
4 changed files with 27 additions and 12 deletions

View File

@@ -623,6 +623,18 @@ class Image {
}
}
/**
* Send list of metatags to be parsed.
*
* @param [] $metatags
*/
public function parse_metatags(/*arr*/ $metatags, $image_id) {
foreach($metatags as $tag) {
$ttpe = new TagTermParseEvent($tag, $image_id, TRUE);
send_event($ttpe);
}
}
/**
* Delete this image from the database and disk
*/