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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2017-09-20 06:10:15 +0300
committerGitHub <noreply@github.com>2017-09-20 06:10:15 +0300
commit70537f22b2f7e73ea47cbc03170da78086b030a3 (patch)
tree0a86b4af00e08a500d7cda42c47119b7c5f3f178
parent4c3a57ab6643996af8536d2459d17f70a70f9eee (diff)
Attempt to fix WARNING: /path/to/piwik/vendor/twig/twig/lib/Twig/Extension/Core.php(1560): Warning - constant(): Couldn't find constant \Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER - Piwik 3.1.1-b1 (#12070)
vendor/twig/twig/lib/Twig/Extension/Core.php(1560): Warning - constant(): Couldn't find constant \Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER
-rw-r--r--plugins/Live/templates/getLastVisitsStart.twig4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Live/templates/getLastVisitsStart.twig b/plugins/Live/templates/getLastVisitsStart.twig
index bad07f41e5..67d6080c44 100644
--- a/plugins/Live/templates/getLastVisitsStart.twig
+++ b/plugins/Live/templates/getLastVisitsStart.twig
@@ -144,8 +144,8 @@
{% elseif action.eventCategory|default(false) is not empty %}
<img class="iconPadding" src='{{ action.icon }}'
title="{{ 'Events_Event'|translate }} {{ action.eventCategory }} - {{ action.eventAction }} {% if action.eventName is defined %}- {{ action.eventName }}{% endif %} {% if action.eventValue is defined %}- {{ action.eventValue }}{% endif %}"/>
- {% elseif action.type == 'goal' or action.type == constant('\\Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER') or
- action.type == constant('\\Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART') %}
+ {% elseif action.type == 'goal' or action.type == constant('Piwik\\Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER') or
+ action.type == constant('Piwik\\Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART') %}
<img class='iconPadding' src="{{ action.icon }}"
title="{{ action.goalName }} - {% if action.revenue > 0 %}{{ 'General_ColumnRevenue'|translate }}: {{ action.revenue|money(idSite)|raw }} - {% endif %} {{ action.serverTimePretty }}"/>
{% endif %}