diff options
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 87eb3d6a9..659950be0 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3824,7 +3824,9 @@ $sphinxClient = new SphinxClient(); - $sphinxClient->SetServer('localhost', 9312); + $sphinxpair = explode(":", SPHINX_SERVER, 2); + + $sphinxClient->SetServer($sphinxpair[0], $sphinxpair[1]); $sphinxClient->SetConnectTimeout(1); $sphinxClient->SetFieldWeights(array('title' => 70, 'content' => 30, |