* Whether this page requires a login
*/
public SoneTemplatePage(String path, Template template, String pageTitleKey, WebInterface webInterface, boolean requireLogin) {
- super(path, template, webInterface.l10n(), pageTitleKey, "noPermission.html");
+ super(path, template, webInterface.getL10n(), pageTitleKey, "noPermission.html");
this.webInterface = webInterface;
this.requireLogin = requireLogin;
template.set("webInterface", webInterface);
if (soneId == null) {
return null;
}
- for (Sone sone : webInterface.core().getSones()) {
- if (sone.getId().equals(soneId)) {
- return sone;
- }
- }
- return null;
+ return webInterface.getCore().getLocalSone(soneId, false);
}
/**