diff options
author | Andrew Dolgov <[email protected]> | 2014-04-23 05:01:13 +0000 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-04-23 05:01:13 +0000 |
commit | edd882ede443a077cb62e57265a7aa06447caeee (patch) | |
tree | 6c5ae6e67f32b101514afd08b599685b3bba8cd8 /plugins/search_sphinx/init.php | |
parent | af2c15f3d3bf922a333c50c9fa6629bfb8465645 (diff) |
search_sphinx: abort if system client library exists
Diffstat (limited to 'plugins/search_sphinx/init.php')
-rw-r--r-- | plugins/search_sphinx/init.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/search_sphinx/init.php b/plugins/search_sphinx/init.php index a6511034d..557b2682c 100644 --- a/plugins/search_sphinx/init.php +++ b/plugins/search_sphinx/init.php @@ -11,6 +11,10 @@ class Search_Sphinx extends Plugin { function init($host) { $host->add_hook($host::HOOK_SEARCH, $this); + if (class_exists("SphinxClient")) { + 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"; } |