Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2020-02-14 16:39:52 +0300
committerGitHub <noreply@github.com>2020-02-14 16:39:52 +0300
commit05823da5c2cbac57014cae81382eee057fa9fc7f (patch)
tree3eebe3e6c6881731602f122032d93f2cf88ba2ed /plugins/CoreHome/templates
parent86814cb53478f276b6a401c1930652b407c30af3 (diff)
Don't link to UI Updater when multi server environment is enabled (#15566)
fix https://github.com/matomo-org/matomo/issues/13417
Diffstat (limited to 'plugins/CoreHome/templates')
-rw-r--r--plugins/CoreHome/templates/_headerMessage.twig15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/CoreHome/templates/_headerMessage.twig b/plugins/CoreHome/templates/_headerMessage.twig
index 46ecd55c18..8de5bed016 100644
--- a/plugins/CoreHome/templates/_headerMessage.twig
+++ b/plugins/CoreHome/templates/_headerMessage.twig
@@ -17,10 +17,17 @@
>
{% if latest_version_available and not isPiwikDemo %}
- <a class="title" href="?module=CoreUpdater&action=newVersionAvailable" style="cursor:pointer;">
- {{ 'General_NewUpdatePiwikX'|translate(latest_version_available) }}
- <span class="icon-warning"></span>
- </a>
+ {% if isMultiServerEnvironment %}
+ <span class="title" style="cursor:pointer;">
+ {{ 'General_NewUpdatePiwikX'|translate(latest_version_available) }}
+ <span class="icon-warning"></span>
+ </span>
+ {% else %}
+ <a class="title" href="?module=CoreUpdater&action=newVersionAvailable" style="cursor:pointer;">
+ {{ 'General_NewUpdatePiwikX'|translate(latest_version_available) }}
+ <span class="icon-warning"></span>
+ </a>
+ {% endif %}
{% elseif isSuperUser and isAdminArea is defined and isAdminArea %}
{% if isInternetEnabled %}
<a class="title">{{ updateCheck|raw }}</a>