summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-20 00:03:51 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-20 00:03:51 -0400
commit57ea8b3644e03cfdee6335bdcf12aefd2ad17f36 (patch)
tree96036f39cba25af2278eba83022d28d11efe9578 /lib
parent58ae93a621b1e5379f61cbfd5af1d7ac49b7dc15 (diff)
Add hidden form value when the site is not in fancy mode so the action is not lost
darcs-hash:20080720040351-533db-a0924ce6cd6e472c7001a167ce36452adf99b038.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/searchaction.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/searchaction.php b/lib/searchaction.php
index a7bcf3789..729cfe6d4 100644
--- a/lib/searchaction.php
+++ b/lib/searchaction.php
@@ -51,6 +51,8 @@ class SearchAction extends Action {
}
function show_form($error=NULL) {
+ global $config;
+
$q = $this->trimmed('q');
$page = $this->trimmed('page', 1);
@@ -60,6 +62,11 @@ class SearchAction extends Action {
'id' => 'login',
'action' => common_local_url($this->trimmed('action'))));
common_element_start('p');
+ if (!isset($config['site']['fancy']) || !$config['site']['fancy']) {
+ common_element('input', array('name' => 'action',
+ 'type' => 'hidden',
+ 'value' => $this->trimmed('action')));
+ }
common_element('input', array('name' => 'q',
'id' => 'q',
'type' => 'text',