Skip to content
Permalink
Browse files

Return XML instead of DOMDocument object when using _serialize viewVar

See #7897
  • Loading branch information...
rlems committed Dec 23, 2015
1 parent cf680a4 commit f18753132b47a1dead5a6fc977d105c80dc927e3
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/View/XmlView.php
@@ -141,6 +141,9 @@ protected function _serialize($serialize)
$options['pretty'] = true;
}
if(isset($options['return']) && strtolower($options['return']) === 'domdocument') {
return Xml::fromArray($data, $options)->saveXML();
}
return Xml::fromArray($data, $options)->asXML();
}
}

0 comments on commit f187531

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.