From 71fb15833dbb15dd7080eddabe167ac3428c1fe1 Mon Sep 17 00:00:00 2001 From: meus Date: Thu, 14 Jun 2007 12:23:02 +0000 Subject: [PATCH] Fixed some spelling errors in xml export --- lib/Doctrine/Lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Lib.php b/lib/Doctrine/Lib.php index ded078f87..f8d8b05b7 100644 --- a/lib/Doctrine/Lib.php +++ b/lib/Doctrine/Lib.php @@ -88,7 +88,7 @@ class Doctrine_Lib $collectionName = Doctrine_Lib::plurelize($collection->getTable()->name); if ( ! isset($incomming_xml)) { - $new_xml_string = "<" . $recordname . ">"; + $new_xml_string = "<" . $collectionName . ">"; $xml = new SimpleXMLElement($new_xml_string); } else { $xml = $incomming_xml->addChild($collectionName); @@ -122,7 +122,7 @@ class Doctrine_Lib { $recordname = $record->getTable()->name; if (!isset($incomming_xml)) { - $new_xml_string = "<" . $collection_name . ">"; + $new_xml_string = "<" . $recordname . ">"; $xml = new SimpleXMLElement($new_xml_string); }else{ $xml = $incomming_xml->addChild($recordname);