From e10194c41023f355d027e1cb005ec2dc7f7dbe3e Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 22 Apr 2007 01:28:09 +0000 Subject: added support for clearing theme. --- framework/Web/UI/TPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index 59a3e859..ba2611ec 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -525,7 +525,7 @@ class TPage extends TTemplateControl */ public function setTheme($value) { - $this->_theme=$value; + $this->_theme=empty($value)?null:$value; } @@ -545,7 +545,7 @@ class TPage extends TTemplateControl */ public function setStyleSheetTheme($value) { - $this->_styleSheet=$value; + $this->_styleSheet=empty($value)?null:$value; } /** -- cgit v1.2.3