1
0
mirror of synced 2025-01-19 06:51:40 +03:00

Fixed some spelling errors in xml export

This commit is contained in:
meus 2007-06-14 12:23:02 +00:00
parent be2f05d8f8
commit 71fb15833d

View File

@ -88,7 +88,7 @@ class Doctrine_Lib
$collectionName = Doctrine_Lib::plurelize($collection->getTable()->name); $collectionName = Doctrine_Lib::plurelize($collection->getTable()->name);
if ( ! isset($incomming_xml)) { if ( ! isset($incomming_xml)) {
$new_xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><" . $recordname . "></" . $recordname . ">"; $new_xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><" . $collectionName . "></" . $collectionName . ">";
$xml = new SimpleXMLElement($new_xml_string); $xml = new SimpleXMLElement($new_xml_string);
} else { } else {
$xml = $incomming_xml->addChild($collectionName); $xml = $incomming_xml->addChild($collectionName);
@ -122,7 +122,7 @@ class Doctrine_Lib
{ {
$recordname = $record->getTable()->name; $recordname = $record->getTable()->name;
if (!isset($incomming_xml)) { if (!isset($incomming_xml)) {
$new_xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><" . $collection_name . "></" . $collection_name . ">"; $new_xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?><" . $recordname . "></" . $recordname . ">";
$xml = new SimpleXMLElement($new_xml_string); $xml = new SimpleXMLElement($new_xml_string);
}else{ }else{
$xml = $incomming_xml->addChild($recordname); $xml = $incomming_xml->addChild($recordname);