Proper SQLite PDO filenames in shared installations (Issue #214)
References #214
This commit is contained in:
@ -8,6 +8,9 @@ Version 2.0-beta4 / RC? ()
|
|||||||
|
|
||||||
* Improve RegExp for Feed-URL matching, thanks to fugue88
|
* Improve RegExp for Feed-URL matching, thanks to fugue88
|
||||||
|
|
||||||
|
* Proper SQLite PDO filenames in shared installations (Issue #214)
|
||||||
|
|
||||||
|
|
||||||
Version 2.0-beta3 (July 25th, 2014)
|
Version 2.0-beta3 (July 25th, 2014)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ function serendipity_db_connect() {
|
|||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
$serendipity['dbConn'] = new PDO(
|
$serendipity['dbConn'] = new PDO(
|
||||||
'sqlite:' . $serendipity['serendipityPath'] . $serendipity['dbName'] . '.db'
|
'sqlite:' . (defined('S9Y_DATA_PATH') ? S9Y_DATA_PATH : $serendipity['serendipityPath']) . $serendipity['dbName'] . '.db'
|
||||||
);
|
);
|
||||||
|
|
||||||
return $serendipity['dbConn'];
|
return $serendipity['dbConn'];
|
||||||
|
@ -50,7 +50,7 @@ function serendipity_db_connect()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SQLite3 doesn't support persistent connections
|
// SQLite3 doesn't support persistent connections
|
||||||
$serendipity['dbConn'] = sqlite3_open($serendipity['serendipityPath'] . $serendipity['dbName'] . '.db');
|
$serendipity['dbConn'] = sqlite3_open((defined('S9Y_DATA_PATH') ? S9Y_DATA_PATH : $serendipity['serendipityPath']) . $serendipity['dbName'] . '.db');
|
||||||
|
|
||||||
return $serendipity['dbConn'];
|
return $serendipity['dbConn'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user