Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nextcloud
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
docker
nextcloud
Commits
4f2bf184
Verified
Commit
4f2bf184
authored
2 years ago
by
Hugo Renard
Browse files
Options
Downloads
Patches
Plain Diff
fix: visio link
parent
ed1b1899
No related branches found
No related tags found
1 merge request
!21
Fixes bug visio url link
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
base/apps/indie_external/lib/SitesManager.php
+7
-9
7 additions, 9 deletions
base/apps/indie_external/lib/SitesManager.php
with
7 additions
and
9 deletions
base/apps/indie_external/lib/SitesManager.php
+
7
−
9
View file @
4f2bf184
...
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment