summaryrefslogtreecommitdiffstats
path: root/lib/class/xmldata.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/xmldata.class.php')
-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