Update default SQLite database path
This commit is contained in:
parent
12d9fdf612
commit
f8049fa087
|
@ -80,7 +80,11 @@ if (!defined('TINYIB_DBDSN')) {
|
|||
define('TINYIB_DBDSN', '');
|
||||
}
|
||||
if (!defined('TINYIB_DBPATH')) {
|
||||
define('TINYIB_DBPATH', 'tinyib.db');
|
||||
if (file_exists('tinyib.db')) {
|
||||
define('TINYIB_DBPATH', 'tinyib.db');
|
||||
} else {
|
||||
define('TINYIB_DBPATH', '.tinyib.db');
|
||||
}
|
||||
}
|
||||
if (!isset($tinyib_hidefieldsop)) {
|
||||
$tinyib_hidefieldsop = array();
|
||||
|
|
|
@ -118,7 +118,7 @@ define('TINYIB_DBNAME', ''); // Database
|
|||
|
||||
// Database configuration - SQLite / SQLite3
|
||||
// The following only apply when TINYIB_DBMODE is set to sqlite or sqlite3
|
||||
define('TINYIB_DBPATH', 'tinyib.db'); // SQLite DB path relative to inc/
|
||||
define('TINYIB_DBPATH', '.tinyib.db'); // SQLite DB path
|
||||
|
||||
// Database configuration - PDO
|
||||
// The following only apply when TINYIB_DBMODE is set to pdo (see README for instructions)
|
||||
|
|
Loading…
Reference in New Issue