summaryrefslogtreecommitdiffstats
path: root/lib/class/xmldata.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 23:47:36 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 23:47:36 +0000
commitabc6eac0e3a28317f8114f78016cfb2b4753003d (patch)
tree39b7a55cb7ad45126d2cddc2f5aea09413ad1872 /lib/class/xmldata.class.php
parenta8f79bb8f4c222334fbb4d2a216260d0de44a7e3 (diff)
downloadampache-abc6eac0e3a28317f8114f78016cfb2b4753003d.tar.gz
ampache-abc6eac0e3a28317f8114f78016cfb2b4753003d.tar.bz2
ampache-abc6eac0e3a28317f8114f78016cfb2b4753003d.zip
maybe fix #404, unconfirmed implemented #405 other misc cleanup
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r--lib/class/xmldata.class.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 2fb18f19..01eb98cb 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -135,7 +135,7 @@ class xmlData {
// If it's an array, run again
if (is_array($value)) {
$value = self::keyed_array($value,1);
- $string .= "\t<$key>$value</$key>\n";
+ $string .= "<$key>\n$value\n</$key>\n";
}
else {
$string .= "\t<$key><![CDATA[$value]]></$key>\n";
@@ -345,13 +345,12 @@ class xmlData {
switch (self::$type) {
case 'xspf':
$header = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n" .
- "<!-- XML Generated by Ampache v." . Config::get('version') . " -->\n";
- "<playlist version = \"1\" xmlns=\"http://xspf.org/ns/0/\">\n ".
+ "<playlist version = \"1\" xmlns=\"http://xspf.org/ns/0/\">\n " .
"<title>Ampache XSPF Playlist</title>\n" .
- "<creator>" . Config::get('site_title') . "</creator>\n" .
- "<annotation>" . Config::get('site_title') . "</annotation>\n" .
+ "<creator>" . scrub_out(Config::get('site_title')) . "</creator>\n" .
+ "<annotation>" . scrub_out(Config::get('site_title')) . "</annotation>\n" .
"<info>". Config::get('web_path') ."</info>\n" .
- "<trackList>\n\n\n\n";
+ "<trackList>\n";
break;
case 'itunes':
$header = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" .
@@ -393,7 +392,7 @@ class xmlData {
$footer = "\t\t</dict>\t\n</dict>\n</plist>\n";
break;
case 'xspf':
- $footer = "\t</trackList>\n</playlist>\n";
+ $footer = "</trackList>\n</playlist>\n";
break;
case 'rss':
$footer = "\n</channel>\n</rss>\n";