From: Maxious Date: Sat, 22 Sep 2012 12:49:38 +0000 Subject: amon fixes X-Git-Url: https://maxious.lambdacomplex.org/git/?p=contractdashboard.git&a=commitdiff&h=1201b90fc44af21e7bbceb603827bf83bf12d2eb --- amon fixes --- --- a/lib/common.inc.php +++ b/lib/common.inc.php @@ -14,7 +14,7 @@ if (strstr($_SERVER['PHP_SELF'], "labs/")) { $basePath = "../"; } -require $basePath."/lib/amon-php/amon.php"; +require $basePath."lib/amon-php/amon.php"; Amon::config(array('address'=> 'http://127.0.0.1:2465', 'protocol' => 'http', 'secret_key' => "g99127n3lkzigg8ob2rllth97d1pb4sj")); --- a/search_autosuggest.php +++ b/search_autosuggest.php @@ -47,7 +47,7 @@ ); } $query = "SELECT \"CNID\", description, value FROM contractnotice -WHERE to_tsvector('english', description) @@ plaintoto_tsquery('english', :input)"; +WHERE to_tsvector('english', description) @@ plainto_tsquery('english', :input)"; $query = $conn->prepare($query); $agencyName = $input . '%'; $query->bindParam(":input", $input); @@ -84,3 +84,4 @@ echo ""; } ?> +