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

fix: visio link

parent ed1b1899
No related branches found
No related tags found
1 merge request!21Fixes bug visio url link
......@@ -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']);
if ($site['name'] === 'Visio') {
$visio_url = getenv('VISIO_URL', true) ?: getenv('VISIO_URL');
if ($visio_url !== '' && $visio_url !== 'false') { // if VISIO_URL is empty, we use the default provided in the json
$visio_url = getenv('VISIO_URL', true);
if ($visio_url) { // if VISIO_URL is empty, we use the default provided in the json
$site['url'] = $visio_url;
}
}
......@@ -187,13 +187,11 @@ class SitesManager {
}
if ($site['name'] === 'Visio') {
$visio_url = getenv('VISIO_URL', true) ?: getenv('VISIO_URL');
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;
} else {
$site['url'] = $visio_url;
}
$visio_url = getenv('VISIO_URL', true);
if (!$visio_url) { // if VISIO_URL is empty, we use the default provided in the json
continue;
} else {
$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