diff options
author | ctrlaltca@gmail.com <> | 2011-05-21 18:14:36 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-05-21 18:14:36 +0000 |
commit | 0892b27e326f14bd3f6229b55077ef5f9d5280b4 (patch) | |
tree | 24039ec47ba8977bf14ba435c058e758e901f185 /framework/I18N/TTranslateParameter.php | |
parent | 6f00b28a1d9c7409c956a83866eac48a9493e83c (diff) |
branch/3.1: merged bugfixes from trunk/ up to current
Diffstat (limited to 'framework/I18N/TTranslateParameter.php')
-rw-r--r-- | framework/I18N/TTranslateParameter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/I18N/TTranslateParameter.php b/framework/I18N/TTranslateParameter.php index 37443133..8172ff03 100644 --- a/framework/I18N/TTranslateParameter.php +++ b/framework/I18N/TTranslateParameter.php @@ -110,10 +110,10 @@ class TTranslateParameter extends TControl $value = $this->getValue();
if(strlen($value) > 0)
return $value;
- $textWriter = new TTextWriter;
- $this->renderControl(new THtmlWriter($textWriter));
+ $htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
+ $this->renderControl($htmlWriter);
return $this->getTrim() ?
- trim($textWriter->flush()) : $textWriter->flush();
+ trim($htmlWriter->flush()) : $htmlWriter->flush();
}
}
|