Merge branch 'master' into 1.0.x

Conflicts:
	plugins/Blacklist/BlacklistPlugin.php
This commit is contained in:
Evan Prodromou
2012-03-08 06:08:11 -06:00
31 changed files with 313 additions and 42 deletions

View File

@@ -65,6 +65,9 @@ class SphinxSearch extends SearchEngine
function query($q)
{
$result = $this->sphinx->query($q, $this->remote_table());
if ($result === false) {
throw new ServerException($this->sphinx->getLastError());
}
if (!isset($result['matches'])) return false;
$id_set = join(', ', array_keys($result['matches']));
$this->target->whereAdd("id in ($id_set)");