Skip to content
Snippets Groups Projects
Commit c2903505 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Do not overwrite options.disco parameter if already set

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2797 44740490-163a-0410-bde0-09ae8108e29a
parent ac4c2d6e
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,11 @@ class sspmod_discojuice_EmbedHelper {
echo 'options.countryAPI = "' . SimpleSAML_Module::getModuleURL('discojuice/country.php'). '"; ' . "\n";
echo 'options.metadata = "' . SimpleSAML_Module::getModuleURL('discojuice/feed.php'). '"; ' . "\n";
echo 'options.disco = { url: "' . SimpleSAML_Module::getModuleURL('discojuice/discojuiceDiscoveryResponse.html?'). '" }; ' . "\n";
if (!empty($options['disco'])) {
echo 'options.disco.url = "' . SimpleSAML_Module::getModuleURL('discojuice/discojuice/discojuiceDiscoveryResponse.html?'). '"; ' . "\n";
}
echo 'options.discoPath = "' . SimpleSAML_Module::getModuleURL('discojuice/discojuice/') . '"; ' . "\n";
......
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