Skip to content
Snippets Groups Projects
Verified Commit d3877981 authored by Hugo Renard's avatar Hugo Renard
Browse files

fix: visio link

parent 00fe6e7d
No related branches found
No related tags found
No related merge requests found
Pipeline #1352 passed with stages
in 26 minutes and 35 seconds
...@@ -114,8 +114,8 @@ class SitesManager { ...@@ -114,8 +114,8 @@ class SitesManager {
$site['url'] = str_replace(['{email}', '{uid}', '{displayname}', '{chat_url}', '{saml_idp_url}', '{saml_realm}', '{quota_url}'], [$email, $uid, $displayName, $chat_url, $saml_idp_url, $saml_realm, $quota_url], $site['url']); $site['url'] = str_replace(['{email}', '{uid}', '{displayname}', '{chat_url}', '{saml_idp_url}', '{saml_realm}', '{quota_url}'], [$email, $uid, $displayName, $chat_url, $saml_idp_url, $saml_realm, $quota_url], $site['url']);
if ($site['name'] === 'Visio') { if ($site['name'] === 'Visio') {
$visio_url = getenv('VISIO_URL', true) ?: getenv('VISIO_URL'); $visio_url = getenv('VISIO_URL', true);
if ($visio_url !== '' && $visio_url !== 'false') { // if VISIO_URL is empty, we use the default provided in the json if ($visio_url) { // if VISIO_URL is empty, we use the default provided in the json
$site['url'] = $visio_url; $site['url'] = $visio_url;
} }
} }
...@@ -187,13 +187,11 @@ class SitesManager { ...@@ -187,13 +187,11 @@ class SitesManager {
} }
if ($site['name'] === 'Visio') { if ($site['name'] === 'Visio') {
$visio_url = getenv('VISIO_URL', true) ?: getenv('VISIO_URL'); $visio_url = getenv('VISIO_URL', true);
if ($visio_url !== '') { // if VISIO_URL is empty, we use the default provided in the json if (!$visio_url) { // if VISIO_URL is empty, we use the default provided in the json
if ($visio_url == 'false') { // if VISIO_URL is 'false', continue the loop and skip this item continue;
continue; } else {
} else { $site['url'] = $visio_url;
$site['url'] = $visio_url;
}
} }
} }
......
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