diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-09-20 06:10:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 06:10:15 +0300 |
commit | 70537f22b2f7e73ea47cbc03170da78086b030a3 (patch) | |
tree | 0a86b4af00e08a500d7cda42c47119b7c5f3f178 /plugins | |
parent | 4c3a57ab6643996af8536d2459d17f70a70f9eee (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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/templates/getLastVisitsStart.twig | 4 |
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 %} |