From a3871f4b80c244a9967eb98b54b7c8c520a3cade Mon Sep 17 00:00:00 2001
From: xue <>
Date: Tue, 4 Jul 2006 13:54:15 +0000
Subject: Fixed rendering of TStyleSheet
---
framework/Web/UI/WebControls/TStyleSheet.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
(limited to 'framework')
diff --git a/framework/Web/UI/WebControls/TStyleSheet.php b/framework/Web/UI/WebControls/TStyleSheet.php
index e5b6ac6d..02ac40cd 100644
--- a/framework/Web/UI/WebControls/TStyleSheet.php
+++ b/framework/Web/UI/WebControls/TStyleSheet.php
@@ -66,10 +66,12 @@ class TStyleSheet extends TControl
*/
public function render($writer)
{
- $textWriter=new TTextWriter;
- parent::renderChildren(new THtmlWriter($textWriter));
- if(($css=trim($textWriter->flush()))!=='')
- $writer->write("\n");
+ if($this->getHasControls())
+ {
+ $writer->write("\n");
+ }
}
}
--
cgit v1.2.3