summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorrojaro <>2011-05-10 12:04:58 +0000
committerrojaro <>2011-05-10 12:04:58 +0000
commitba0935a74dcae1e92b6db90e20411de2fd48d6ef (patch)
tree3e932b209016ef02d626ab91c282a040106132df /framework
parent3dac210f569ff7847e3fd1795b60295d2a3226fd (diff)
fixed #320
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveHyperLink.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveHyperLink.php b/framework/Web/UI/ActiveControls/TActiveHyperLink.php
index 9dbde235..7d1b02b9 100644
--- a/framework/Web/UI/ActiveControls/TActiveHyperLink.php
+++ b/framework/Web/UI/ActiveControls/TActiveHyperLink.php
@@ -66,7 +66,8 @@ class TActiveHyperLink extends THyperLink implements IActiveControl
parent::setImageUrl($value);
if($this->getActiveControl()->canUpdateClientSide() && $value !== '')
{
- $renderer = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
+ $textWriter = new TTextWriter;
+ $renderer = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), $textWriter);
$this->createImage($value)->renderControl($renderer);
$this->getPage()->getCallbackClient()->update($this, $textWriter->flush());
}