Skip to content
Snippets Groups Projects
Commit 1da8b395 authored by Olav Morken's avatar Olav Morken
Browse files

Fix up frontpage URLs.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1724 44740490-163a-0410-bde0-09ae8108e29a
parent da93d7c4
No related branches found
No related tags found
No related merge requests found
......@@ -31,12 +31,12 @@ $links_auth[] = array(
if ($config->getValue('enable.saml20-sp') === true)
$links_auth[] = array(
'href' => 'example-simple/saml2-example.php',
'href' => SimpleSAML_Utilities::getBaseURL() . 'example-simple/saml2-example.php',
'text' => '{core:frontpage:link_saml2example}');
if ($config->getValue('enable.shib13-sp') === true)
$links_auth[] = array(
'href' => 'example-simple/shib13-example.php',
'href' => SimpleSAML_Utilities::getBaseURL() . 'example-simple/shib13-example.php',
'text' => '{core:frontpage:link_shib13example}');
......
......@@ -34,17 +34,17 @@ $links_federation = array();
$links_config[] = array(
'href' => 'example-simple/hostnames.php?dummy=1',
'href' => SimpleSAML_Utilities::getBaseURL() . 'example-simple/hostnames.php?dummy=1',
'text' => '{core:frontpage:link_diagnostics}'
);
$links_config[] = array(
'href' => 'admin/phpinfo.php',
'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/phpinfo.php',
'text' => '{core:frontpage:link_phpinfo}'
);
$links_config[] = array(
'href' => 'admin/config.php',
'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/config.php',
'text' => '{core:frontpage:link_configcheck}',
);
......
......@@ -46,7 +46,7 @@ if ($publishURL !== NULL) {
foreach($metadataSources as $name => $url) {
if(!$config->getBoolean('enable.' . $name, FALSE)) continue;
$url = SimpleSAML_Utilities::resolveURL($url);
$url = SimpleSAML_Utilities::getBaseURL() . $url;
$linkTarget = SimpleSAML_Utilities::addURLparameter($publishURL, array('url' => $url));
$links_federation[] = array(
'href' => $linkTarget,
......@@ -57,12 +57,12 @@ if ($publishURL !== NULL) {
$links_federation[] = array(
'href' => 'admin/metadata.php',
'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/metadata.php',
'text' => '{core:frontpage:link_meta_overview}'
);
$links_federation[] = array(
'href' => 'admin/metadata-converter.php',
'href' => SimpleSAML_Utilities::getBaseURL() . 'admin/metadata-converter.php',
'text' => '{core:frontpage:link_xmlconvert}',
);
......
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