]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
use display_query instead of value for search input value
authorJeroen Dalsem <jdalsem@coldtrick.com>
Wed, 10 Oct 2012 06:58:17 +0000 (08:58 +0200)
committerJeroen Dalsem <jdalsem@coldtrick.com>
Wed, 10 Oct 2012 06:58:17 +0000 (08:58 +0200)
mod/search/views/default/search/search_box.php

index 91bedde050c83989bdffecbfa956b04d1a64e86b..7474a280c9c34801286c7541b6ec675c3570df1f 100644 (file)
@@ -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>