Merge pull request #94 from CrackerStealth/bugfix/incorrect-pdo-precheck

Updated PDO PostgreSQL Check
This commit is contained in:
Serge Latyntsev 2019-08-05 14:44:09 +12:00 committed by GitHub
commit d2e3bc90d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ DatabaseAdapterRegistry::register(array(
'title' => 'PostgreSQL 8.3+ (using PDO)',
'helperPath' => __DIR__.'/code/PostgreSQLDatabaseConfigurationHelper.php',
'helperClass' => PostgreSQLDatabaseConfigurationHelper::class,
'supported' => (class_exists('PDO') && in_array('postgresql', PDO::getAvailableDrivers())),
'supported' => (class_exists('PDO') && in_array('pgsql', PDO::getAvailableDrivers())),
'missingExtensionText' =>
'Either the <a href="http://www.php.net/manual/en/book.pdo.php">PDO Extension</a> or
the <a href="http://www.php.net/manual/en/ref.pdo-sqlsrv.php">SQL Server PDO Driver</a>
the <a href="http://www.php.net/manual/en/ref.pdo-pgsql.php">PostgreSQL PDO Driver</a>
are unavailable. Please install or enable these and refresh this page.'
));