diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-11-14 06:46:30 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-11-14 06:46:30 +0000 |
commit | fa9bef64d8ab842d65cd1da7f9024a157f4d279f (patch) | |
tree | aa63a1e311229f7e06a7b44b0b710622c86778c3 /lib/class/xmldata.class.php | |
parent | 5d80f343a402a45a4f128bd7aee33587ac009042 (diff) | |
download | ampache-fa9bef64d8ab842d65cd1da7f9024a157f4d279f.tar.gz ampache-fa9bef64d8ab842d65cd1da7f9024a157f4d279f.tar.bz2 ampache-fa9bef64d8ab842d65cd1da7f9024a157f4d279f.zip |
Sync to trunk
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r-- | lib/class/xmldata.class.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php index b1b97264..de9c9544 100644 --- a/lib/class/xmldata.class.php +++ b/lib/class/xmldata.class.php @@ -422,6 +422,8 @@ class xmlData { public static function democratic($object_ids=array()) { if (!is_array($object_ids)) { $object_ids = array(); } + + $democratic = Democratic::get_current_playlist(); $string = ''; @@ -452,13 +454,13 @@ class xmlData { "\t<time>$song->time</time>\n" . "\t<mime>$song->mime</mime>\n" . "\t<url><![CDATA[" . Song::play_url($song->id) . "]]></url>\n" . - "\t<size>$song->size</size>\n" . - "\t<art><![CDATA[" . $art_url . "]]></art>\n" . + "\t<size>$song->size</size>\n" . + "\t<art><![CDATA[" . $art_url . "]]></art>\n" . "\t<preciserating>" . $rating->preciserating . "</preciserating>\n" . - "\t<rating>" . $rating->rating . "</rating>\n" . + "\t<rating>" . $rating->rating . "</rating>\n" . "\t<vote>" . $democratic->get_vote($row_id) . "</vote>\n" . - "</song>\n"; - + "</song>\n"; + } // end foreach $final = self::_header() . $string . self::_footer(); |