From cb0aeb81d77d7170196f1b667978f56c6018100b Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 25 Nov 2006 20:51:43 +0000 Subject: merge from 3.0 branch till 1508. --- demos/quickstart/protected/controls/SearchBox.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'demos/quickstart/protected/controls') diff --git a/demos/quickstart/protected/controls/SearchBox.php b/demos/quickstart/protected/controls/SearchBox.php index b579cd91..6fb8e376 100644 --- a/demos/quickstart/protected/controls/SearchBox.php +++ b/demos/quickstart/protected/controls/SearchBox.php @@ -1,25 +1,25 @@ ensureChildControls(); return $this->getRegisteredObject('search')->getText(); } - + public function getTextBox() { $this->ensureChildControls(); return $this->getRegisteredObject('search'); } - + public function getButton() { $this->ensureChildControls(); return $this->getRegisteredObject('find'); } - + public function onInit($param) { parent::onInit($param); @@ -32,7 +32,7 @@ class SearchBox extends TTemplateControl if(strlen($query = $this->search->getText()) >0) { $ps = $this->getApplication()->getPageService(); - $page = $ps->constructUrl('Search', array('q' => $query)); + $page = $ps->constructUrl('Search', array('q' => $query), false); $this->getApplication()->getResponse()->redirect($page); } } -- cgit v1.2.3