Use new template engine.
[Sone.git] / src / main / java / net / pterodactylus / sone / notify / ListNotification.java
index 7d3e3c7..c7e5b7c 100644 (file)
@@ -48,8 +48,7 @@ public class ListNotification<T> extends TemplateNotification {
         */
        public ListNotification(String id, String key, Template template) {
                super(id, template);
-               template.set(key, elements);
-               template.set("notification", this);
+               template.getInitialContext().set(key, elements);
        }
 
        //