diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2019-11-23 14:37:56 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-23 14:37:56 +0300 |
commit | ab638844dbbc48548227286e65bbcf6a5e1672ca (patch) | |
tree | ff7f87a9f499a0b0ad7e128e718958b6e16d8da0 /plugins | |
parent | 4e187d151b4d68c41df4b4f279e012a7dc8094ff (diff) |
Fix broken dashboard when a new version available and when `multi_server_environment = 1` (#15187)
Without this patch, the dashboard is broken when there is a new version available and when `multi_server_environment = 1`
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/templates/_headerMessage.twig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/_headerMessage.twig b/plugins/CoreHome/templates/_headerMessage.twig index 7f4ea2a013..5633fca3cb 100644 --- a/plugins/CoreHome/templates/_headerMessage.twig +++ b/plugins/CoreHome/templates/_headerMessage.twig @@ -35,7 +35,8 @@ <div class="dropdown positionInViewport"> {% if latest_version_available and isSuperUser %} - {% if isMultiServerEnvironment %}{{ 'CoreHome_OneClickUpdateNotPossibleAsMultiServerEnvironment'|translate("<a rel='noreferrer noopener' href='https://builds.matomo.org/piwik-" ~ latest_version_available ~ ".zip'>https://builds.matomo.org/piwik-" ~ latest_version_available ~ ".zip</a>")|raw }} + {% if isMultiServerEnvironment %} + {{ 'CoreHome_OneClickUpdateNotPossibleAsMultiServerEnvironment'|translate("<a rel='noreferrer noopener' href='https://builds.matomo.org/piwik-" ~ latest_version_available ~ ".zip'>builds.matomo.org</a>")|raw }} {% else %} {{ 'General_PiwikXIsAvailablePleaseUpdateNow'|translate(latest_version_available,"<br /><a href='index.php?module=CoreUpdater&action=newVersionAvailable'>","</a>","<a target='_blank' rel='noreferrer noopener' href='https://matomo.org/changelog/'>","</a>")|raw }} {% endif %} |