From 6ceda699ed09af534cfb6c4dd1dc95c476d135b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 7 Jul 2011 20:51:22 +0200 Subject: [PATCH] Store Sone under a different name to prevent it from being clobbered. --- src/main/java/net/pterodactylus/sone/web/WebInterface.java | 2 +- src/main/resources/templates/notify/soneInsertNotification.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 9c96c3e..0e62f77 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -712,7 +712,7 @@ public class WebInterface implements CoreListener { TemplateNotification templateNotification = soneInsertNotifications.get(sone); if (templateNotification == null) { templateNotification = new TemplateNotification(TemplateParser.parse(createReader("/templates/notify/soneInsertNotification.html"))); - templateNotification.set("sone", sone); + templateNotification.set("insertSone", sone); soneInsertNotifications.put(sone, templateNotification); } return templateNotification; diff --git a/src/main/resources/templates/notify/soneInsertNotification.html b/src/main/resources/templates/notify/soneInsertNotification.html index 8d3260d..27374ad 100644 --- a/src/main/resources/templates/notify/soneInsertNotification.html +++ b/src/main/resources/templates/notify/soneInsertNotification.html @@ -1,7 +1,7 @@ <%if soneStatus|match value="inserting"> - Your Sone <%sone.niceName|html> is now being inserted. + Your Sone <%insertSone.niceName|html> is now being inserted. <%elseif soneStatus|match value="inserted"> - Your Sone <%sone.niceName|html> has been inserted in <%= Notification.SoneInsert.Duration|l10n 0=insertDuration>. + Your Sone <%insertSone.niceName|html> has been inserted in <%= Notification.SoneInsert.Duration|l10n 0=insertDuration>. <%elseif soneStatus|match value="insert-aborted"> - Inserting your Sone <%sone.niceName|html> has failed. + Inserting your Sone <%insertSone.niceName|html> has failed. <%/if> \ No newline at end of file -- 2.7.4