Skip to content

Commit

Permalink
properly get query
Browse files Browse the repository at this point in the history
  • Loading branch information
fratrik committed Jan 27, 2011
1 parent 280e083 commit dd24dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/php-typeahead/ondemand-source.php
Expand Up @@ -2,7 +2,7 @@

require_once '../../support/php/Javelin.php';

$query = $_SERVER['q'];
$query = $_GET['q'];

$list = file_get_contents('animals.txt');
$list = explode("\n", trim($list));
Expand All @@ -17,4 +17,4 @@
}
}

echo Javelin::renderAjaxResponse($response);
echo Javelin::renderAjaxResponse($response);

0 comments on commit dd24dce

Please sign in to comment.