Преглед на файлове

Revert "do not include sphinxclient if the class already exists"

This reverts commit 63edc5c6315ca75305d497987e2d33385d6d30d6.
Andrew Dolgov преди 11 години
родител
ревизия
030b2a31c1
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      include/functions.php

+ 1 - 3
include/functions.php

@@ -3850,9 +3850,7 @@
 	}
 
 	function sphinx_search($query, $offset = 0, $limit = 30) {
-
-		if (!class_exists("SphinxClient"))
-			require_once 'lib/sphinxapi.php';
+		require_once 'lib/sphinxapi.php';
 
 		$sphinxClient = new SphinxClient();