summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/UI/TForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php
index 0a90e459..2cfa5547 100644
--- a/framework/Web/UI/TForm.php
+++ b/framework/Web/UI/TForm.php
@@ -80,9 +80,9 @@ class TForm extends TControl
$this->addAttributesToRender($writer);
$writer->renderBeginTag('form');
+ $cs=$page->getClientScript();
if($page->getClientSupportsJavaScript())
{
- $cs=$page->getClientScript();
$cs->renderHiddenFields($writer);
$cs->renderScriptFiles($writer);
$cs->renderBeginScripts($writer);