Tentative de régler le bordel

This commit is contained in:
Gauvain Boiché
2020-03-31 15:58:31 +02:00
parent a1864c0414
commit 459b46df7b
345 changed files with 10758 additions and 4066 deletions

View File

@@ -155,6 +155,12 @@ class config_php_file
return $dbms;
}
// Force use of mysqli when specifying mysql
if (preg_match('/(phpbb\\\db\\\driver\\\)?mysql$/i', $dbms))
{
return 'phpbb\db\driver\mysqli';
}
throw new \RuntimeException("You have specified an invalid dbms driver: $dbms");
}
}