From 06652fe0406b45732ad80a3ab08c7d97bae4b47c Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 20 Mar 2008 07:52:51 +0000 Subject: implement xml error codes rather then relying on string parsing --- lib/class/xmldata.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/class/xmldata.class.php') 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" . self::_footer(); + + $string = self::_header() . "\t" . self::_footer(); return $string; } // error -- cgit