summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TXmlTransform.php
diff options
context:
space:
mode:
authoruacaman <>2011-05-04 20:49:27 +0000
committeruacaman <>2011-05-04 20:49:27 +0000
commitff3de9649f1b9ce04f685d25e3df2277927e7ff7 (patch)
tree287a96e2ace7ecd414a5a831213482b6eaa1a1d1 /framework/Web/UI/WebControls/TXmlTransform.php
parent39f417b6977a3264d5df16f383d8ba0b182b229a (diff)
Issue 234:
Controls now honor THttpResponse configured HtmlWriterType.
Diffstat (limited to 'framework/Web/UI/WebControls/TXmlTransform.php')
-rw-r--r--framework/Web/UI/WebControls/TXmlTransform.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TXmlTransform.php b/framework/Web/UI/WebControls/TXmlTransform.php
index bb2c044f..d00ab974 100644
--- a/framework/Web/UI/WebControls/TXmlTransform.php
+++ b/framework/Web/UI/WebControls/TXmlTransform.php
@@ -169,10 +169,10 @@ class TXmlTransform extends TControl {
*/
public function render($writer) {
if(($document=$this->getSourceXmlDocument()) === null) {
- $textWriter = new TTextWriter();
- parent::render(new THtmlWriter($textWriter));
+ $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
+ parent::render($htmlWriter);
$document = new DOMDocument();
- $document->loadXML($textWriter->flush());
+ $document->loadXML($htmlWriter->flush());
}
$stylesheet = $this->getTransformXmlDocument();