summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TTextHighlighter.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TTextHighlighter.php')
-rw-r--r--framework/Web/UI/WebControls/TTextHighlighter.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TTextHighlighter.php b/framework/Web/UI/WebControls/TTextHighlighter.php
index cedc807f..4aa01dc4 100644
--- a/framework/Web/UI/WebControls/TTextHighlighter.php
+++ b/framework/Web/UI/WebControls/TTextHighlighter.php
@@ -168,8 +168,7 @@ class TTextHighlighter extends TWebControl
protected function getHeaderTemplate()
{
$id = $this->getClientID();
- $cs = $this->getPage()->getClientScript();
- return $cs->renderJavascriptBlock("new Prado.WebUI.TTextHighlighter('{$id}');");
+ return TJavaScript::renderScriptBlock("new Prado.WebUI.TTextHighlighter('{$id}');");
}
}
?> \ No newline at end of file