Revision: 1793
Author: andreassolberg
Date: Mon Sep 28 02:53:33 2009
Log: Set default data directory, in case it is missing from config.php
http://code.google.com/p/simplesamlphp/source/detail?r=1793
Modified:
/trunk/modules/core/lib/Storage/SQLPermanentStorage.php
=======================================
--- /trunk/modules/core/lib/Storage/SQLPermanentStorage.php Mon Sep 28
02:45:06 2009
+++ /trunk/modules/core/lib/Storage/SQLPermanentStorage.php Mon Sep 28
02:53:33 2009
@@ -18,7 +18,7 @@
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');
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en
-~----------~----~----~----~------~----~------~--~---