Skip to content
Snippets Groups Projects
Commit 3062723c authored by Robin Appelman's avatar Robin Appelman
Browse files

default to sqlite3 over sqlite2 for new installations

parent fd2c1839
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,8 @@ class OC_SETUP {
$password = htmlspecialchars_decode($options['adminpass']);
$datadir = htmlspecialchars_decode($options['directory']);
//if only sqlite3 is available use that.
if($dbtype=='sqlite' and !is_callable('sqlite_open')){
//use sqlite3 when available, otherise sqlite2 will be used.
if($dbtype=='sqlite' and class_exists('SQLite3')){
$dbtype='sqlite3';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment