diff options
author | Jeroen Dalsem <jdalsem@coldtrick.com> | 2012-10-10 08:58:17 +0200 |
---|---|---|
committer | Jeroen Dalsem <jdalsem@coldtrick.com> | 2012-10-10 08:58:17 +0200 |
commit | 45d86fbfb153da14350c093ab5a208c2b8819998 (patch) | |
tree | 9906849fae50704633857a1f54ec5e3757f44780 /mod | |
parent | 3eeea7d1b2d531aa9c4dc0c4f09f58ed287a4971 (diff) | |
download | elgg-45d86fbfb153da14350c093ab5a208c2b8819998.tar.gz elgg-45d86fbfb153da14350c093ab5a208c2b8819998.tar.bz2 |
use display_query instead of value for search input value
Diffstat (limited to 'mod')
-rw-r--r-- | mod/search/views/default/search/search_box.php | 3 |
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 91bedde05..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 $value; ?>" 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> |