mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:35:55 +00:00
add additional check for sphinxclient class
This commit is contained in:
@@ -11,7 +11,8 @@ class Search_Sphinx extends Plugin {
|
|||||||
function init($host) {
|
function init($host) {
|
||||||
$host->add_hook($host::HOOK_SEARCH, $this);
|
$host->add_hook($host::HOOK_SEARCH, $this);
|
||||||
|
|
||||||
if (class_exists("SphinxClient")) {
|
// 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.");
|
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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user