mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 08:01:10 +02:00
[feature/postgresql-fulltext-search] minor changes
Changes to comply with other backend conventions. include $user as global variable to access it inside init(); PHPBB3-9730
This commit is contained in:
@ -33,7 +33,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
|
|||||||
var $mbstring_regex = false;
|
var $mbstring_regex = false;
|
||||||
var $tsearch_builtin = false;
|
var $tsearch_builtin = false;
|
||||||
|
|
||||||
function fulltext_postgres(&$error)
|
public function __construct(&$error)
|
||||||
{
|
{
|
||||||
global $db, $config;
|
global $db, $config;
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
|
|||||||
*
|
*
|
||||||
* @return string Name
|
* @return string Name
|
||||||
*/
|
*/
|
||||||
function get_name()
|
public function get_name()
|
||||||
{
|
{
|
||||||
return 'PostgreSQL Fulltext';
|
return 'PostgreSQL Fulltext';
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
|
|||||||
*/
|
*/
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
global $db;
|
global $db, $user;
|
||||||
|
|
||||||
if ($db->sql_layer != 'postgres')
|
if ($db->sql_layer != 'postgres')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user