BUGFIX: SQLite PDO adapter to use the new function to secure db storage location

This commit is contained in:
Andreas Piening 2010-03-17 21:45:00 +00:00
parent 204e3efd38
commit 21b512a4e7

View File

@ -29,7 +29,10 @@ class SQLitePDODatabase extends SQLite3Database {
$this->lives_in_memory = false;
}
self::safe_dir($parameters['path']);
if(!file_exists($parameters['path'])) {
SQLiteDatabaseConfigurationHelper::create_db_dir($parameters['path']);
SQLiteDatabaseConfigurationHelper::secure_db_dir($parameters['path']);
}
$this->dbConn = new PDO("sqlite:$file");