summaryrefslogtreecommitdiffstats
path: root/lib/class/xmldata.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-19 08:34:52 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-19 08:34:52 +0000
commitb372d114dce875b9e69230fe903780ae50195584 (patch)
treef2dd58be35f5ec8c7ab4cee55decec3b2b931bae /lib/class/xmldata.class.php
parentf4d94f034e6ca26d37244028d8ccb08ddbab0e8c (diff)
downloadampache-b372d114dce875b9e69230fe903780ae50195584.tar.gz
ampache-b372d114dce875b9e69230fe903780ae50195584.tar.bz2
ampache-b372d114dce875b9e69230fe903780ae50195584.zip
fixed an album art config parsing problem, Thanks Karl Hungus more work on xml class and api mojo, handshake logic in place
Diffstat (limited to 'lib/class/xmldata.class.php')
-rw-r--r--lib/class/xmldata.class.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 16eaeaeb..2fea98db 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -39,6 +39,18 @@ class xmlData {
} // constructor
+ /**
+ * error
+ * This generates a standard XML Error message
+ * nothing fancy here...
+ */
+ public static function error($string) {
+
+ $string = "<root>\n\t<error><![CDATA[$string]]></error>\n</root>";
+ return $string;
+
+ } // error
+
} // xmlData
?>