summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-11 12:14:44 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-08-11 12:14:44 +0200
commit2e308c3608bea50e07aacf51b232eaedbda6eb20 (patch)
tree07907c66eb726606d228781914058e2b7b7a20a1 /lib
parent8ecc39810428baa07bb322c5f515f56bac533746 (diff)
downloadrpg-2e308c3608bea50e07aacf51b232eaedbda6eb20.tar.gz
rpg-2e308c3608bea50e07aacf51b232eaedbda6eb20.tar.bz2
only carry the q to search tab
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/extension/helper/gui.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plugins/extension/helper/gui.php b/lib/plugins/extension/helper/gui.php
index 139a1a16a..76651515c 100644
--- a/lib/plugins/extension/helper/gui.php
+++ b/lib/plugins/extension/helper/gui.php
@@ -180,8 +180,9 @@ class helper_plugin_extension_gui extends DokuWiki_Plugin {
'do' => 'admin',
'page' => 'extension',
'tab' => $tab,
- 'q' => $INPUT->str('q')
);
+ if($tab == 'search') $defaults['q'] = $INPUT->str('q');
+
return wl($ID, array_merge($defaults, $params), $absolute, $sep);
}