From 714952bbc58d75ead22924beac1ccdbf59027c7c Mon Sep 17 00:00:00 2001 From: Tyler Antonio <tantonio@ualberta.ca> Date: Tue, 21 Jul 2015 10:42:29 -0600 Subject: [PATCH] Missed a spelling mistake and made importPdoMetadata a little bit more readable --- bin/importPdoMetadata.php | 4 +++- config-templates/config.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/importPdoMetadata.php b/bin/importPdoMetadata.php index 746637846..d09dd708a 100755 --- a/bin/importPdoMetadata.php +++ b/bin/importPdoMetadata.php @@ -8,14 +8,16 @@ require_once $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . ' # that a PDO source exists. foreach ($config['metadata.sources'] as $s) { # If pdo is configured, create the new handler and add in the metadata sets. - if ("pdo" === $s['type']) { + if ($s['type'] === "pdo") { $mdshp = new SimpleSAML_Metadata_MetaDataStorageHandlerPdo($s); $mdshp->initDatabase(); + foreach (glob("metadata/*.php") as $filename) { $metadata = array(); require_once $filename; $set = basename($filename, ".php"); echo "importing set '$set'..." . PHP_EOL; + foreach ($metadata as $k => $v) { echo "\t$k" . PHP_EOL; $mdshp->addEntry($k, $set, $v); diff --git a/config-templates/config.php b/config-templates/config.php index c5433ce4d..6f2a4f885 100644 --- a/config-templates/config.php +++ b/config-templates/config.php @@ -232,7 +232,7 @@ $config = array( /* * Database slave configuration is optional as well. If you are only * running a single database server, leave this blank. If you have - * a master/slave conifguration, you can define as many slave servers + * a master/slave configuration, you can define as many slave servers * as you want here. Slaves will be picked at random to be queried from. * * Configuration options in the slave array are exactly the same as the -- GitLab