Commit 4f1d4e5b authored by Volker Krause's avatar Volker Krause
Browse files

Ensure the Sqlite folder exists

This fixes unit tests on a clean check-out.
parent ee32d11d
......@@ -51,6 +51,12 @@ public function __construct()
$this->username = strval($USERFEEDBACK_DB_USERNAME);
if (isset($USERFEEDBACK_DB_PASSWORD))
$this->password = strval($USERFEEDBACK_DB_PASSWORD);
if ($this->type == 'sqlite') {
$dirName = dirname($this->name);
if (!file_exists($dirName))
mkdir(dirname($this->name), $mode = 0700, $recursive = true);
}
}
/** PDO DSN */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment