Add title to pages.
[WoTNS.git] / src / main / java / net / pterodactylus / wotns / ui / web / EnableIdentityPage.java
index 125d346..f8d4a9d 100644 (file)
@@ -37,7 +37,7 @@ public class EnableIdentityPage extends BasicPage {
         * @param template
         */
        public EnableIdentityPage(Template template, WebInterface webInterface) {
-               super(webInterface, "enableIdentity.html", template);
+               super(webInterface, "enableIdentity.html", null, template);
        }
 
        /**
@@ -47,7 +47,7 @@ public class EnableIdentityPage extends BasicPage {
        protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
                super.processTemplate(request, templateContext);
                if (request.getMethod() == Method.POST) {
-                       OwnIdentity ownIdentity = getIdentity(request);
+                       OwnIdentity ownIdentity = getOwnIdentity(request);
                        if (ownIdentity == null) {
                                /* TODO - show error. */
                                return;