mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 22:41:28 +02:00
[ticket/15540] Display only available search backends
PHPBB3-15540
This commit is contained in:
@@ -23,12 +23,12 @@ use phpbb\user;
|
||||
*/
|
||||
class fulltext_native extends base implements search_backend_interface
|
||||
{
|
||||
const UTF8_HANGUL_FIRST = "\xEA\xB0\x80";
|
||||
const UTF8_HANGUL_LAST = "\xED\x9E\xA3";
|
||||
const UTF8_CJK_FIRST = "\xE4\xB8\x80";
|
||||
const UTF8_CJK_LAST = "\xE9\xBE\xBB";
|
||||
const UTF8_CJK_B_FIRST = "\xF0\xA0\x80\x80";
|
||||
const UTF8_CJK_B_LAST = "\xF0\xAA\x9B\x96";
|
||||
protected const UTF8_HANGUL_FIRST = "\xEA\xB0\x80";
|
||||
protected const UTF8_HANGUL_LAST = "\xED\x9E\xA3";
|
||||
protected const UTF8_CJK_FIRST = "\xE4\xB8\x80";
|
||||
protected const UTF8_CJK_LAST = "\xE9\xBE\xBB";
|
||||
protected const UTF8_CJK_B_FIRST = "\xF0\xA0\x80\x80";
|
||||
protected const UTF8_CJK_B_LAST = "\xF0\xAA\x9B\x96";
|
||||
|
||||
/**
|
||||
* Associative array holding index stats
|
||||
@@ -149,6 +149,14 @@ class fulltext_native extends base implements search_backend_interface
|
||||
return 'phpBB Native Fulltext';
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function is_available(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user