Add web interface to all template contexts more reliably.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / WebInterface.java
index e155944..b4fffd9 100644 (file)
@@ -214,6 +214,7 @@ public class WebInterface implements CoreListener {
                templateContextFactory.addFilter("in", new ContainsFilter());
                templateContextFactory.addProvider(Provider.TEMPLATE_CONTEXT_PROVIDER);
                templateContextFactory.addProvider(new ClassPathTemplateProvider());
+               templateContextFactory.addTemplateObject("webInterface", this);
                templateContextFactory.addTemplateObject("formPassword", formPassword);
 
                /* create notifications. */