From eda8070b7f3dfb1a34c10afe72b6d3f387d6f235 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Tue, 10 Mar 2009 21:45:15 +0000 Subject: fix tags in the api --- lib/class/xmldata.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/class/xmldata.class.php') diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index 71554464..cfb8805f 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -130,10 +130,10 @@ class xmlData { $string = ''; - foreach ($tags as $tag_id) { + foreach ($tags as $tag_id=>$data) { + $tag = new Tag($tag_id); - $tag->format($type,$object_id); - $string .= "\tid\" count=\"$tag->weight\">name]]>\n"; + $string .= "\tid . "\" count=\"" . $data['count'] . "\">name]]>\n"; } return $string; -- cgit