]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2922: pg/livesearch now works with "term" parameter
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 26 Apr 2011 16:24:02 +0000 (16:24 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 26 Apr 2011 16:24:02 +0000 (16:24 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9025 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/input.php
views/default/input/autocomplete.php

index 25416b8689c955af0bf3775a889dc4889eac9225..84752bc7d67793b733ab9f05bba8596cb2156ae5 100644 (file)
@@ -237,7 +237,7 @@ function input_livesearch_page_handler($page) {
                exit;
        }
 
-       if (!$q = get_input('q')) {
+       if (!$q = get_input('term', get_input('q'))) {
                exit;
        }
 
index b16d08fc3553117975bc66de05cad7d88ceca80e..0a4057ddf0dfbab4cea1cfb06230c99c0597cfd2 100644 (file)
@@ -35,7 +35,7 @@ elgg_load_js('elgg.autocomplete');
 
 <script type="text/javascript">
 elgg.provide('elgg.autocomplete');
-elgg.autocomplete.url = "<?php elgg_get_site_url() . 'livesearch?' . $ac_url_params; ?>";
+elgg.autocomplete.url = "<?php echo elgg_get_site_url() . 'livesearch?' . $ac_url_params; ?>";
 </script> 
 <input type="text" <?php echo elgg_format_attributes($vars); ?> />