From 17dc43290bb821c77eaaf196e4c6fef4d5c1a343 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 9 Dec 2016 08:45:18 +0500 Subject: Added links to server in mail templates --- src/org/traccar/notification/NotificationFormatter.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar/notification') diff --git a/src/org/traccar/notification/NotificationFormatter.java b/src/org/traccar/notification/NotificationFormatter.java index 2d580922c..819c387d1 100644 --- a/src/org/traccar/notification/NotificationFormatter.java +++ b/src/org/traccar/notification/NotificationFormatter.java @@ -45,6 +45,7 @@ public final class NotificationFormatter { if (event.getGeofenceId() != 0) { velocityContext.put("geofence", Context.getGeofenceManager().getGeofence(event.getGeofenceId())); } + velocityContext.put("webUrl", Context.getVelocityEngine().getProperty("web.url")); Template template = null; try { -- cgit v1.2.3