From 9b2dcc3ed5e56a634a6bf4351aa2524e6ae05a99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 6 Nov 2010 12:09:21 +0100 Subject: [PATCH] Use more convenient method from core. --- src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java index 065950e..2953b0d 100644 --- a/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java +++ b/src/main/java/net/pterodactylus/sone/web/SoneTemplatePage.java @@ -137,12 +137,7 @@ public class SoneTemplatePage extends TemplatePage { if (soneId == null) { return null; } - for (Sone sone : webInterface.getCore().getSones()) { - if (sone.getId().equals(soneId)) { - return sone; - } - } - return null; + return webInterface.getCore().getLocalSone(soneId); } /** -- 2.7.4