Skip to content
Snippets Groups Projects
Commit 591917ba authored by Bryce Lowe's avatar Bryce Lowe
Browse files

Instead of hardcoding the metadata directory, look it up from the metadatadir...

Instead of hardcoding the metadata directory, look it up from the metadatadir configuration variable
parent d0921997
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,8 @@ foreach ($config['metadata.sources'] as $s) {
$mdshp = new \SimpleSAML\Metadata\MetaDataStorageHandlerPdo($s);
$mdshp->initDatabase();
foreach (glob("metadata/*.php") as $filename) {
$metadataDir = rtrim(\SimpleSAML\Configuration::getInstance()->getString('metadatadir'), '/');
foreach (glob("{$metadataDir}/*.php") as $filename) {
$metadata = [];
require_once $filename;
$set = basename($filename, ".php");
......
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