'tags' might not exist yet, use get_tag_array()

This commit is contained in:
Shish 2012-03-11 14:37:04 +00:00
parent e10cc4fa99
commit f04704e3e9

View file

@ -10,7 +10,7 @@ class NotATag extends Extension {
public function get_priority() {return 30;} // before ImageUploadEvent and tag_history public function get_priority() {return 30;} // before ImageUploadEvent and tag_history
public function onImageAddition(ImageAdditionEvent $event) { public function onImageAddition(ImageAdditionEvent $event) {
$this->scan($event->image->tags); $this->scan($event->image->get_tag_array());
} }
public function onTagSet(TagSetEvent $event) { public function onTagSet(TagSetEvent $event) {