summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/controls
diff options
context:
space:
mode:
authorxue <>2006-01-24 02:55:55 +0000
committerxue <>2006-01-24 02:55:55 +0000
commit51694d32a1b85a02809f55e1f406c98ba755b4bf (patch)
tree5fc4658cb11c2a2fc36335166e0f1ff57f2df3b3 /demos/quickstart/protected/controls
parentc5f2fb2c77e7140277349d5b1f1a8f6017909dc6 (diff)
Make quickstart demos disable theme if under FT situation.
Diffstat (limited to 'demos/quickstart/protected/controls')
-rw-r--r--demos/quickstart/protected/controls/SampleLayout.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/quickstart/protected/controls/SampleLayout.php b/demos/quickstart/protected/controls/SampleLayout.php
index ee7f41ff..94b7ac74 100644
--- a/demos/quickstart/protected/controls/SampleLayout.php
+++ b/demos/quickstart/protected/controls/SampleLayout.php
@@ -2,6 +2,14 @@
class SampleLayout extends TTemplateControl
{
+
+ public function __construct()
+ {
+ if($this->Request->Items->contains('functionaltest'))
+ $this->Service->RequestedPage->EnableTheming=false;
+ parent::__construct();
+ }
+
public function toggleTopicPanel($sender,$param)
{
$this->TopicPanel->Visible=!$this->TopicPanel->Visible;