diff options
author | uacaman <> | 2011-05-04 20:49:27 +0000 |
---|---|---|
committer | uacaman <> | 2011-05-04 20:49:27 +0000 |
commit | ff3de9649f1b9ce04f685d25e3df2277927e7ff7 (patch) | |
tree | 287a96e2ace7ecd414a5a831213482b6eaa1a1d1 /framework/Web/UI/WebControls/TTextProcessor.php | |
parent | 39f417b6977a3264d5df16f383d8ba0b182b229a (diff) |
Issue 234:
Controls now honor THttpResponse configured HtmlWriterType.
Diffstat (limited to 'framework/Web/UI/WebControls/TTextProcessor.php')
-rw-r--r-- | framework/Web/UI/WebControls/TTextProcessor.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TTextProcessor.php b/framework/Web/UI/WebControls/TTextProcessor.php index 26dab754..3d900054 100644 --- a/framework/Web/UI/WebControls/TTextProcessor.php +++ b/framework/Web/UI/WebControls/TTextProcessor.php @@ -75,9 +75,9 @@ abstract class TTextProcessor extends TWebControl {
if(($text=$this->getText())==='' && $this->getHasControls())
{
- $textWriter=new TTextWriter;
- parent::renderContents(new THtmlWriter($textWriter));
- $text=$textWriter->flush();
+ $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
+ parent::renderContents($htmlWriter);
+ $text=$htmlWriter->flush();
}
if($text!=='')
$writer->write($this->processText($text));
|