aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2012-10-10 00:36:09 -0700
committerEvan Winslow <evan@elgg.org>2012-10-10 00:36:09 -0700
commita5a92340ca549dd0ad8516665819f6675d81efa8 (patch)
treeee11b18c3591e910b19fa5f718b236b3491db5f9 /mod
parent0f3124c29f66eb57b7310d720bf76564b57eb2c0 (diff)
parent45d86fbfb153da14350c093ab5a208c2b8819998 (diff)
downloadelgg-a5a92340ca549dd0ad8516665819f6675d81efa8.tar.gz
elgg-a5a92340ca549dd0ad8516665819f6675d81efa8.tar.bz2
Merge pull request #396 from jdalsem/#4876-search-box-remember-query
Fixes #4876: search box remember query
Diffstat (limited to 'mod')
-rw-r--r--mod/search/views/default/search/search_box.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/mod/search/views/default/search/search_box.php b/mod/search/views/default/search/search_box.php
index ff12ae4f0..7474a280c 100644
--- a/mod/search/views/default/search/search_box.php
+++ b/mod/search/views/default/search/search_box.php
@@ -32,12 +32,11 @@ if (function_exists('mb_convert_encoding')) {
}
$display_query = htmlspecialchars($display_query, ENT_QUOTES, 'UTF-8', false);
-
?>
<form class="<?php echo $class; ?>" action="<?php echo elgg_get_site_url(); ?>search" method="get">
<fieldset>
- <input type="text" class="search-input" size="21" name="q" value="<?php echo elgg_echo('search'); ?>" onblur="if (this.value=='') { this.value='<?php echo elgg_echo('search'); ?>' }" onfocus="if (this.value=='<?php echo elgg_echo('search'); ?>') { this.value='' };" />
+ <input type="text" class="search-input" size="21" name="q" value="<?php echo $display_query; ?>" onblur="if (this.value=='') { this.value='<?php echo elgg_echo('search'); ?>' }" onfocus="if (this.value=='<?php echo elgg_echo('search'); ?>') { this.value='' };" />
<input type="hidden" name="search_type" value="all" />
<input type="submit" value="<?php echo elgg_echo('search:go'); ?>" class="search-submit-button" />
</fieldset>