diff options
Diffstat (limited to 'lib/class')
-rw-r--r-- | lib/class/xmldata.class.php | 5 |
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 |