mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 17:41:01 +00:00
Check selected PDO driver on install
Instead of checking that one of the DB driver is installed we retrieve the selected driver (in parameters) and see if the extension exists.
This commit is contained in:
parent
d92407041a
commit
c61b68e8a6
1 changed files with 4 additions and 3 deletions
|
@ -73,13 +73,14 @@ class InstallCommand extends ContainerAwareCommand
|
|||
|
||||
$fulfilled = true;
|
||||
|
||||
$label = '<comment>PDO Drivers</comment>';
|
||||
$label = '<comment>PDO Driver</comment>';
|
||||
$status = '<info>OK!</info>';
|
||||
$help = '';
|
||||
if (!(extension_loaded('pdo_sqlite') || extension_loaded('pdo_mysql') || extension_loaded('pdo_pgsql'))) {
|
||||
|
||||
if (!extension_loaded($this->getContainer()->getParameter('database_driver'))) {
|
||||
$fulfilled = false;
|
||||
$status = '<error>ERROR!</error>';
|
||||
$help = 'Needs one of sqlite, mysql or pgsql PDO drivers';
|
||||
$help = 'Database driver "'.$this->getContainer()->getParameter('database_driver').'" is not installed.';
|
||||
}
|
||||
|
||||
$rows = [];
|
||||
|
|
Loading…
Reference in a new issue