summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-24 16:14:20 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-01-25 22:23:05 -0600
commit4536ead454a45be9316bb79b9c10967826017178 (patch)
treec061b6c41db3bb7eafcead39c959b234490ba489 /lib/private/Setup.php
parente09bba5e366d14223c1326ac4a08cf3e5904612a (diff)
downloadnextcloud-server-4536ead454a45be9316bb79b9c10967826017178.tar.gz
nextcloud-server-4536ead454a45be9316bb79b9c10967826017178.zip
Remove useless dependency on SQLite (non-PDO)
* we only require the PDO driver * fixes #481 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 81a5343fe21..d9997767684 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -125,8 +125,8 @@ class Setup {
public function getSupportedDatabases($allowAllDatabases = false) {
$availableDatabases = array(
'sqlite' => array(
- 'type' => 'class',
- 'call' => 'SQLite3',
+ 'type' => 'pdo',
+ 'call' => 'sqlite',
'name' => 'SQLite'
),
'mysql' => array(
@@ -163,9 +163,7 @@ class Setup {
$type = $availableDatabases[$database]['type'];
$call = $availableDatabases[$database]['call'];
- if($type === 'class') {
- $working = $this->class_exists($call);
- } elseif ($type === 'function') {
+ if ($type === 'function') {
$working = $this->is_callable($call);
} elseif($type === 'pdo') {
$working = in_array($call, $this->getAvailableDbDriversForPdo(), TRUE);