1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15540] Method init

PHPBB3-15540
This commit is contained in:
rubencm
2021-03-22 18:46:58 +01:00
parent 457c750773
commit fd45ce1e91
6 changed files with 66 additions and 56 deletions

View File

@@ -137,6 +137,19 @@ class fulltext_postgres extends base implements search_backend_interface
return $this->db->get_sql_layer() == 'postgres';
}
/**
* {@inheritdoc}
*/
public function init()
{
if (!$this->is_available())
{
return $this->user->lang['FULLTEXT_POSTGRES_INCOMPATIBLE_DATABASE'];
}
return false;
}
/**
* {@inheritdoc}
*/
@@ -171,21 +184,6 @@ class fulltext_postgres extends base implements search_backend_interface
return $this->phrase_search;
}
/**
* Checks for correct PostgreSQL version and stores min/max word length in the config
*
* @return string|bool Language key of the error/incompatibility occurred
*/
public function init()
{
if (!$this->is_available())
{
return $this->user->lang['FULLTEXT_POSTGRES_INCOMPATIBLE_DATABASE'];
}
return false;
}
/**
* {@inheritdoc}
*/