summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/class/access.class.php2
-rw-r--r--lib/class/xmldata.class.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/class/access.class.php b/lib/class/access.class.php
index 0182a45d..006bfb2c 100644
--- a/lib/class/access.class.php
+++ b/lib/class/access.class.php
@@ -165,7 +165,7 @@ class Access {
* and then returns true or false if they have access to this
* the IP is passed as a dotted quad
*/
- public static function check_network($type,$ip='',$user,$level,$key='') {
+ public static function check_network($type,$user,$level,$ip='',$key='') {
if (!Config::get('access_control')) {
switch ($type) {
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index caeee032..807a9a5d 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -274,6 +274,8 @@ class xmlData {
$song = new Song($song_id);
$song->format();
+ $rating = new Rating($song_id,'song');
+
$art_url = Config::get('web_path') . '/image.php?id=' . $song->album . '&auth=' . scrub_out($_REQUEST['auth']);
$string .= "<song id=\"$song->id\">\n" .
@@ -286,6 +288,8 @@ class xmlData {
"\t<url><![CDATA[" . $song->get_url($_REQUEST['auth']) . "]]></url>\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" .
"</song>\n";
} // end foreach