/*
- * Sone - ImageBrowserPage.java - Copyright © 2011–2013 David Roden
+ * Sone - ImageBrowserPage.java - Copyright © 2011–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* {@inheritDoc}
*/
@Override
- protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
- super.processTemplate(request, templateContext);
+ protected void handleRequest(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
String albumId = request.getHttpRequest().getParam("album", null);
if (albumId != null) {
Album album = webInterface.getCore().getAlbum(albumId);
templateContext.set("albums", albumPagination.getItems());
return;
}
- Sone sone = getCurrentSone(request.getToadletContext(), false);
+ Sone sone = getCurrentSoneWithoutCreatingSession(request.getToadletContext());
templateContext.set("soneRequested", true);
templateContext.set("sone", sone);
}