summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-20 07:52:51 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-20 07:52:51 +0000
commit06652fe0406b45732ad80a3ab08c7d97bae4b47c (patch)
treea05098b28648f998bf32cbc286124916c6949d2a /lib
parent17244cee94c89c4dcdc7fc58001790165ca2d7f1 (diff)
downloadampache-06652fe0406b45732ad80a3ab08c7d97bae4b47c.tar.gz
ampache-06652fe0406b45732ad80a3ab08c7d97bae4b47c.tar.bz2
ampache-06652fe0406b45732ad80a3ab08c7d97bae4b47c.zip
implement xml error codes rather then relying on string parsing
Diffstat (limited to 'lib')
-rw-r--r--lib/class/xmldata.class.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/class/xmldata.class.php b/lib/class/xmldata.class.php
index 21608b3d..7f2e33f6 100644
--- a/lib/class/xmldata.class.php
+++ b/lib/class/xmldata.class.php
@@ -70,9 +70,10 @@ class xmlData {
* This generates a standard XML Error message
* nothing fancy here...
*/
- public static function error($string) {
+ public static function error($code,$string) {
- $string = self::_header() . "\t<error><![CDATA[$string]]></error>" . self::_footer();
+
+ $string = self::_header() . "\t<error code=\"$code\"><![CDATA[$string]]></error>" . self::_footer();
return $string;
} // error