diff options
Diffstat (limited to 'framework/Web')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveHyperLink.php | 3 |
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()); } |