From: David ‘Bombe’ Roden Date: Sun, 29 Jul 2012 09:56:59 +0000 (+0200) Subject: Fix storage of current user in the template. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fe3398d54c5b8eda7c2ff14befb299155fe8e4b5;p=demoscenemusic.git Fix storage of current user in the template. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistPage.java index 45ef5c9..aacab5d 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistPage.java @@ -51,6 +51,7 @@ public class ArtistPage extends BasePage { */ @Override protected void processTemplate(TemplateContext templateContext, ServletRequest request) throws RedirectException { + super.processTemplate(templateContext, request); try { Artist artist = getCore().getDataManager().getArtistById(request.getServletRequest().getParameter("id")); templateContext.set("artist", artist); diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistsPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistsPage.java index 042a46a..3dfe636 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistsPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/ArtistsPage.java @@ -49,6 +49,7 @@ public class ArtistsPage extends BasePage { */ @Override protected void processTemplate(TemplateContext templateContext, ServletRequest request) throws RedirectException { + super.processTemplate(templateContext, request); try { Collection artists = getCore().getDataManager().getAllArtists(); templateContext.set("artists", artists); diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/TrackPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/TrackPage.java index 9089046..c35c692 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/TrackPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/TrackPage.java @@ -50,6 +50,7 @@ public class TrackPage extends BasePage { */ @Override protected void processTemplate(TemplateContext templateContext, ServletRequest request) throws RedirectException { + super.processTemplate(templateContext, request); try { templateContext.set("track", getCore().getDataManager().getTrackById(request.getServletRequest().getParameter("id"))); } catch (DatabaseException de1) {