summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_xml.class4
1 files changed, 3 insertions, 1 deletions
diff --git a/it_xml.class b/it_xml.class
index 7dd82c7..d22dc23 100644
--- a/it_xml.class
+++ b/it_xml.class
@@ -334,11 +334,13 @@ function error()
function set($vals)
{
+ $prefix = it::match(".*_", get_class($this));
+
if (is_array($vals))
{
foreach ($vals as $key => $val)
{
- $classname = $this->_p['prefix'] . $this->_make_identifier($key);
+ $classname = $prefix . $this->_make_identifier($key);
if (!class_exists($classname))
eval("class $classname extends it_xml {}");