From f04704e3e95ecd547d1aceef7816e4ba37f196b1 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 11 Mar 2012 14:37:04 +0000 Subject: [PATCH] 'tags' might not exist yet, use get_tag_array() --- contrib/not_a_tag/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/not_a_tag/main.php b/contrib/not_a_tag/main.php index ba18c04b..d2696da3 100644 --- a/contrib/not_a_tag/main.php +++ b/contrib/not_a_tag/main.php @@ -10,7 +10,7 @@ class NotATag extends Extension { public function get_priority() {return 30;} // before ImageUploadEvent and tag_history public function onImageAddition(ImageAdditionEvent $event) { - $this->scan($event->image->tags); + $this->scan($event->image->get_tag_array()); } public function onTagSet(TagSetEvent $event) {