From: David ‘Bombe’ Roden Date: Thu, 21 Oct 2010 21:11:51 +0000 (+0200) Subject: Add request change filters to all created templates. X-Git-Tag: 0.1-RC1~102 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a8a1504eff5ea9ce5963a91040a5561ef7651804;p=Sone.git Add request change filters to all created templates. --- diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index a7d714e..427570d 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -34,6 +34,7 @@ import net.pterodactylus.sone.data.Sone; import net.pterodactylus.sone.freenet.L10nFilter; import net.pterodactylus.sone.main.SonePlugin; import net.pterodactylus.sone.template.PostAccessor; +import net.pterodactylus.sone.template.RequestChangeFilter; import net.pterodactylus.sone.template.SoneAccessor; import net.pterodactylus.sone.template.SubstringFilter; import net.pterodactylus.sone.web.ajax.GetSoneStatusPage; @@ -155,6 +156,7 @@ public class WebInterface extends AbstractService { templateFactory.addFilter("l10n", new L10nFilter(l10n())); templateFactory.addFilter("substring", new SubstringFilter()); templateFactory.addFilter("xml", new XmlFilter()); + templateFactory.addFilter("change", new RequestChangeFilter()); templateFactory.setTemplateProvider(new ClassPathTemplateProvider(templateFactory)); templateFactory.addTemplateObject("formPassword", sonePlugin.pluginRespirator().getToadletContainer().getFormPassword());