From: Paul Martin Date: Sat, 26 Mar 2016 15:05:51 +0000 (+0000) Subject: Fix for #1031 to display error message X-Git-Tag: v1.8.0~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=932e93f555b0740a449350db6125ad52a4b395c8;p=gitblit.git Fix for #1031 to display error message --- diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java index 7e164a8c..8958eb2a 100644 --- a/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/RepositoryPage.java @@ -662,6 +662,15 @@ public abstract class RepositoryPage extends RootPage { } } + @Override + protected void onInitialize() { + + super.onInitialize(); + + // setup page header and footer + setupPage(getRepositoryName(), "/ " + getPageName()); + } + @Override protected void onBeforeRender() { // dispose of repository object @@ -669,8 +678,7 @@ public abstract class RepositoryPage extends RootPage { r.close(); r = null; } - // setup page header and footer - setupPage(getRepositoryName(), "/ " + getPageName()); + super.onBeforeRender(); }