Skip to content
Snippets Groups Projects
Commit 714952bb authored by Tyler Antonio's avatar Tyler Antonio
Browse files

Missed a spelling mistake and made importPdoMetadata a little bit more readable

parent 1dca2865
No related branches found
No related tags found
No related merge requests found
...@@ -8,14 +8,16 @@ require_once $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . ' ...@@ -8,14 +8,16 @@ require_once $baseDir . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . '
# that a PDO source exists. # that a PDO source exists.
foreach ($config['metadata.sources'] as $s) { foreach ($config['metadata.sources'] as $s) {
# If pdo is configured, create the new handler and add in the metadata sets. # 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 = new SimpleSAML_Metadata_MetaDataStorageHandlerPdo($s);
$mdshp->initDatabase(); $mdshp->initDatabase();
foreach (glob("metadata/*.php") as $filename) { foreach (glob("metadata/*.php") as $filename) {
$metadata = array(); $metadata = array();
require_once $filename; require_once $filename;
$set = basename($filename, ".php"); $set = basename($filename, ".php");
echo "importing set '$set'..." . PHP_EOL; echo "importing set '$set'..." . PHP_EOL;
foreach ($metadata as $k => $v) { foreach ($metadata as $k => $v) {
echo "\t$k" . PHP_EOL; echo "\t$k" . PHP_EOL;
$mdshp->addEntry($k, $set, $v); $mdshp->addEntry($k, $set, $v);
......
...@@ -232,7 +232,7 @@ $config = array( ...@@ -232,7 +232,7 @@ $config = array(
/* /*
* Database slave configuration is optional as well. If you are only * Database slave configuration is optional as well. If you are only
* running a single database server, leave this blank. If you have * 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. * 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 * Configuration options in the slave array are exactly the same as the
......
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