From 7773df0accb4115fab52a62bfd44a0a169dd76cf Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 5 Mar 2010 13:25:03 +0000 Subject: too kludgy for now --- it_xml.class | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'it_xml.class') diff --git a/it_xml.class b/it_xml.class index d22dc23..7dd82c7 100644 --- a/it_xml.class +++ b/it_xml.class @@ -334,13 +334,11 @@ function error() function set($vals) { - $prefix = it::match(".*_", get_class($this)); - if (is_array($vals)) { foreach ($vals as $key => $val) { - $classname = $prefix . $this->_make_identifier($key); + $classname = $this->_p['prefix'] . $this->_make_identifier($key); if (!class_exists($classname)) eval("class $classname extends it_xml {}"); -- cgit v1.2.3