class Search_Sphinx extends Plugin {
function about() {
return array(1.0,
- "Delegate searching for articles to Sphinx",
+ "Delegate searching for articles to Sphinx (don't forget to set options in config.php)",
"hoelzro",
true);
}
function init($host) {
$host->add_hook($host::HOOK_SEARCH, $this);
+ // idk if that would work but checking for the class being loaded is somehow not enough
+ if (class_exists("SphinxClient") && !defined('SEARCHD_COMMAND_SEARCH')) {
+ user_error("Your PHP has a separate systemwide Sphinx client installed which conflicts with the client library used by tt-rss. Either remove the system library or disable Sphinx support.");
+ }
+
require_once __DIR__ . "/sphinxapi.php";
}
function api_version() {
return 2;
}
-}
-?>
+}
\ No newline at end of file