protected function get_db()
{
global $phpbb_root_path, $phpEx;
// so we don't reopen an open connection
if (!$this->db instanceof \phpbb\db\driver\driver_interface) {
$dbms = self::$config['dbms'];
$this->db = new $dbms();
$this->db->sql_connect(self::$config['dbhost'], self::$config['dbuser'], self::$config['dbpasswd'], self::$config['dbname'], self::$config['dbport']);
}
return $this->db;
}