Skip to content
Snippets Groups Projects
Unverified Commit 2d77404e authored by Thijs Kinkhorst's avatar Thijs Kinkhorst Committed by GitHub
Browse files

Merge pull request #1110 from brycejlowe/bug/import-metadata-pdo

look it up from the metadatadir from configuration variable
parents d0921997 591917ba
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