From 595da1313efd43a0a60c1797364da42511d46de6 Mon Sep 17 00:00:00 2001
From: sgiehl <stefan@piwik.org>
Date: Thu, 14 Sep 2017 23:50:19 +0200
Subject: [PATCH] fix possible undefined constant error

---
 plugins/Live/templates/getLastVisitsStart.twig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/Live/templates/getLastVisitsStart.twig b/plugins/Live/templates/getLastVisitsStart.twig
index 1f37e4854a..bad07f41e5 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::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER') or
+                                          action.type == constant('\\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 %}
-- 
GitLab