summaryrefslogtreecommitdiff
path: root/framework/Web/UI/ActiveControls/TActiveHyperLink.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/ActiveControls/TActiveHyperLink.php
parent39f417b6977a3264d5df16f383d8ba0b182b229a (diff)
Issue 234:
Controls now honor THttpResponse configured HtmlWriterType.
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveHyperLink.php')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveHyperLink.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveHyperLink.php b/framework/Web/UI/ActiveControls/TActiveHyperLink.php
index 1a42e09c..9dbde235 100644
--- a/framework/Web/UI/ActiveControls/TActiveHyperLink.php
+++ b/framework/Web/UI/ActiveControls/TActiveHyperLink.php
@@ -66,8 +66,7 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
parent::setImageUrl($value);
if($this->getActiveControl()->canUpdateClientSide() && $value !== '')
{
- $textWriter = new TTextWriter();
- $renderer = new THtmlWriter($textWriter);
+ $renderer = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
$this->createImage($value)->renderControl($renderer);
$this->getPage()->getCallbackClient()->update($this, $textWriter->flush());
}