Fix storage of current user in the template.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 29 Jul 2012 09:56:59 +0000 (11:56 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 29 Jul 2012 09:56:59 +0000 (11:56 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/ArtistPage.java
src/main/java/net/pterodactylus/demoscenemusic/page/ArtistsPage.java
src/main/java/net/pterodactylus/demoscenemusic/page/TrackPage.java

index 45ef5c9..aacab5d 100644 (file)
@@ -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);
index 042a46a..3dfe636 100644 (file)
@@ -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<Artist> artists = getCore().getDataManager().getAllArtists();
                        templateContext.set("artists", artists);
index 9089046..c35c692 100644 (file)
@@ -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) {