Skip to content

Commit

Permalink
Fixed xml representation for TDTInfo and TDTAdmin packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreation committed Jan 25, 2013
1 parent 67991bb commit d3c4cc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tdt/core/formatters/XmlFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ public function printBody() {
$this->rootname = $rootname;
}

/*
* TDTInfo and Admin are exceptions, need special progress
*/

if(isset($this->objectToPrint->resources)){
$rootname = "resources";
}

if (!is_object($this->objectToPrint->$rootname)) {
$wrapper = new \stdClass();
Expand Down

0 comments on commit d3c4cc0

Please sign in to comment.