summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2009-08-26 13:39:01 +0200
committerAndreas Gohr <gohr@cosmocode.de>2009-08-26 13:39:01 +0200
commitad4aaef7a487c01e8448c3371005826b4b51d9fc (patch)
treeb647e196b6994a1f67dd5f28a4acdf488744f634 /inc/template.php
parentdb6589326a9acc87193efd535749ad1561bb96c0 (diff)
downloadrpg-ad4aaef7a487c01e8448c3371005826b4b51d9fc.tar.gz
rpg-ad4aaef7a487c01e8448c3371005826b4b51d9fc.tar.bz2
reshow $QUERY in search form instead of super global
darcs-hash:20090826113901-6e07b-8b7cb115629cd20ea2b145c4d955e83f270f5ef2.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php
index 0c528c800..f84f2ed11 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -781,6 +781,7 @@ function tpl_action($type,$link=0,$wrapper=false,$return=false,$pre='',$suf='',$
function tpl_searchform($ajax=true,$autocomplete=true){
global $lang;
global $ACT;
+ global $QUERY;
// don't print the search form if search action has been disabled
if (!actionOk('search')) return false;
@@ -788,7 +789,7 @@ function tpl_searchform($ajax=true,$autocomplete=true){
print '<form action="'.wl().'" accept-charset="utf-8" class="search" id="dw__search"><div class="no">';
print '<input type="hidden" name="do" value="search" />';
print '<input type="text" ';
- if($ACT == 'search') print 'value="'.htmlspecialchars($_REQUEST['id']).'" ';
+ if($ACT == 'search') print 'value="'.htmlspecialchars($QUERY).'" ';
if(!$autocomplete) print 'autocomplete="off" ';
print 'id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" />';
print '<input type="submit" value="'.$lang['btn_search'].'" class="button" title="'.$lang['btn_search'].'" />';