Skip to content
Snippets Groups Projects
Commit 82f2cdcf authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Set default data directory, in case it is missing from config.php

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1793 44740490-163a-0410-bde0-09ae8108e29a
parent 89346aae
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ class sspmod_core_Storage_SQLPermanentStorage {
if (is_null($config))
$config = SimpleSAML_Configuration::getInstance();
$datadir = $config->getPathValue('datadir');
$datadir = $config->getPathValue('datadir', 'data/');
if (!is_dir($datadir))
throw new Exception('Data directory [' . $datadir. '] does not exist');
......
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