diff options
author | Nils Adermann <naderman@naderman.de> | 2014-07-04 21:08:20 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2014-07-04 21:08:20 +0200 |
commit | 53ff23671c2706c13bbe8ecca6b29b3c3456768b (patch) | |
tree | 9c53dc59698da5b4750e536f20552ffe088931c3 /phpBB/phpbb/search/fulltext_sphinx.php | |
parent | 86e21a9b261d6239487c626b7e9c9f462ceab611 (diff) | |
parent | ff6e026a403a622bd1aa498bff396a737735faed (diff) | |
download | forums-53ff23671c2706c13bbe8ecca6b29b3c3456768b.tar forums-53ff23671c2706c13bbe8ecca6b29b3c3456768b.tar.gz forums-53ff23671c2706c13bbe8ecca6b29b3c3456768b.tar.bz2 forums-53ff23671c2706c13bbe8ecca6b29b3c3456768b.tar.xz forums-53ff23671c2706c13bbe8ecca6b29b3c3456768b.zip |
Merge remote-tracking branch 'github-nicofuma/ticket/12446' into develop-ascraeus
* github-nicofuma/ticket/12446:
[ticket/12446] Unnecessary db connect inphpbb_bootstrap_enabled_exts
Diffstat (limited to 'phpBB/phpbb/search/fulltext_sphinx.php')
-rw-r--r-- | phpBB/phpbb/search/fulltext_sphinx.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/search/fulltext_sphinx.php b/phpBB/phpbb/search/fulltext_sphinx.php index 9008af338b..78c11f1180 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -199,7 +199,7 @@ class fulltext_sphinx */ public function init() { - if ($this->db->sql_layer != 'mysql' && $this->db->sql_layer != 'mysql4' && $this->db->sql_layer != 'mysqli' && $this->db->sql_layer != 'postgres') + if ($this->db->get_sql_layer() != 'mysql' && $this->db->get_sql_layer() != 'mysql4' && $this->db->get_sql_layer() != 'mysqli' && $this->db->get_sql_layer() != 'postgres') { return $this->user->lang['FULLTEXT_SPHINX_WRONG_DATABASE']; } @@ -218,11 +218,11 @@ class fulltext_sphinx protected function config_generate() { // Check if Database is supported by Sphinx - if ($this->db->sql_layer =='mysql' || $this->db->sql_layer == 'mysql4' || $this->db->sql_layer == 'mysqli') + if ($this->db->get_sql_layer() =='mysql' || $this->db->get_sql_layer() == 'mysql4' || $this->db->get_sql_layer() == 'mysqli') { $this->dbtype = 'mysql'; } - else if ($this->db->sql_layer == 'postgres') + else if ($this->db->get_sql_layer() == 'postgres') { $this->dbtype = 'pgsql'; } |