From ee6da62511660cf5849fea1a39a3e94c1f2867c7 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 17 Feb 2012 17:26:45 -0800 Subject: Fixes #15. Added untagging. --- classes/TidypicsImage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'classes/TidypicsImage.php') diff --git a/classes/TidypicsImage.php b/classes/TidypicsImage.php index b97a2b05e..a64743017 100644 --- a/classes/TidypicsImage.php +++ b/classes/TidypicsImage.php @@ -348,7 +348,9 @@ class TidypicsImage extends ElggFile { 'annotation_name' => 'phototag', )); foreach ($annotations as $annotation) { - $tags[] = unserialize($annotation->value); + $tag = unserialize($annotation->value); + $tag->annotation_id = $annotation->id; + $tags[] = $tag; } return $tags; -- cgit v1.2.3