X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FCreateSonePage.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FCreateSonePage.java;h=1c16d311b8750a9e5061c183fb45702c66b46008;hb=bd2cbb229f68fb2535cf6010befa9c4a276d2ee6;hp=d55624f98bf2da40dbe8cf307e9ef0104c5158e4;hpb=8127a3d7f17b0740254a5935de97fa03312a4efd;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java index d55624f..1c16d31 100644 --- a/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java +++ b/src/main/java/net/pterodactylus/sone/web/CreateSonePage.java @@ -95,7 +95,7 @@ public class CreateSonePage extends SoneTemplatePage { @Override protected void processTemplate(Request request, Template template) throws RedirectException { super.processTemplate(request, template); - List ownIdentitiesWithoutSone = getOwnIdentitiesWithoutSone(webInterface.core()); + List ownIdentitiesWithoutSone = getOwnIdentitiesWithoutSone(webInterface.getCore()); template.set("identitiesWithoutSone", ownIdentitiesWithoutSone); if (request.getMethod() == Method.POST) { String id = request.getHttpRequest().getPartAsStringFailsafe("identity", 44); @@ -111,8 +111,8 @@ public class CreateSonePage extends SoneTemplatePage { return; } /* create Sone. */ - webInterface.core().getIdentityManager().addContext(selectedIdentity, "Sone"); - Sone sone = webInterface.core().createSone(selectedIdentity); + webInterface.getCore().getIdentityManager().addContext(selectedIdentity, "Sone"); + Sone sone = webInterface.getCore().createSone(selectedIdentity); if (sone == null) { logger.log(Level.SEVERE, "Could not create Sone for OwnIdentity: %s", selectedIdentity); /* TODO - go somewhere else */