Use traditional getter name.
[Sone.git] / src / main / java / net / pterodactylus / sone / web / ajax / JsonPage.java
index 4f7e08f..e8cd3d5 100644 (file)
@@ -85,9 +85,9 @@ public abstract class JsonPage implements Page {
         */
        protected Session getCurrentSession(ToadletContext toadletContenxt, boolean create) {
                try {
-                       Session session = webInterface.sessionManager().useSession(toadletContenxt);
+                       Session session = webInterface.getSessionManager().useSession(toadletContenxt);
                        if (create && (session == null)) {
-                               session = webInterface.sessionManager().createSession(UUID.randomUUID().toString(), toadletContenxt);
+                               session = webInterface.getSessionManager().createSession(UUID.randomUUID().toString(), toadletContenxt);
                        }
                        return session;
                } catch (freenet.clients.http.RedirectException re1) {
@@ -112,7 +112,7 @@ public abstract class JsonPage implements Page {
                if (soneId == null) {
                        return null;
                }
-               for (Sone sone : webInterface.core().getSones()) {
+               for (Sone sone : webInterface.getCore().getSones()) {
                        if (sone.getId().equals(soneId)) {
                                return sone;
                        }