diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-27 22:24:16 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-27 22:24:16 +0100 |
commit | d6380a53955e4de1a69e0a645821a7424e44135e (patch) | |
tree | 8529f9c75f1fd5e931fd0fb29366522d34ce27e3 /lib/private/util.php | |
parent | a00712aa65169b248cac8e541dfe69fd82082609 (diff) | |
parent | 79778d6a5118f3d024d1d4c1e001fba8fba13423 (diff) | |
download | nextcloud-server-d6380a53955e4de1a69e0a645821a7424e44135e.tar.gz nextcloud-server-d6380a53955e4de1a69e0a645821a7424e44135e.zip |
Merge pull request #11786 from owncloud/MakeSupportedDBsConfigurable
Make supported DBs configurable within config.php
Diffstat (limited to 'lib/private/util.php')
-rw-r--r-- | lib/private/util.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index d600f8a5e64..6cd982c222e 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -436,12 +436,9 @@ class OC_Util { } $webServerRestart = false; - //check for database drivers - if (!(is_callable('sqlite_open') or class_exists('SQLite3')) - and !is_callable('mysql_connect') - and !is_callable('pg_connect') - and !is_callable('oci_connect') - ) { + $setup = new OC_Setup($config); + $availableDatabases = $setup->getSupportedDatabases(); + if (empty($availableDatabases)) { $errors[] = array( 'error' => $l->t('No database drivers (sqlite, mysql, or postgresql) installed.'), 'hint' => '' //TODO: sane hint |