]> source.dussan.org Git - gitblit.git/commitdiff
Fix for #1031 to display error message 1032/head
authorPaul Martin <paul@paulsputer.com>
Sat, 26 Mar 2016 15:05:51 +0000 (15:05 +0000)
committerPaul Martin <paul@paulsputer.com>
Sat, 26 Mar 2016 15:40:04 +0000 (15:40 +0000)
src/main/java/com/gitblit/wicket/pages/RepositoryPage.java

index 7e164a8cd8a21c5e6a9bdf31e0f21127bebcbae7..8958eb2abbc5513c96b501ea1ec1216f900d3350 100644 (file)
@@ -662,6 +662,15 @@ public abstract class RepositoryPage extends RootPage {
                }\r
        }\r
 \r
+       @Override\r
+       protected void onInitialize() {\r
+\r
+               super.onInitialize();\r
+\r
+               // setup page header and footer\r
+               setupPage(getRepositoryName(), "/ " + getPageName());\r
+       }\r
+       \r
        @Override\r
        protected void onBeforeRender() {\r
                // dispose of repository object\r
@@ -669,8 +678,7 @@ public abstract class RepositoryPage extends RootPage {
                        r.close();\r
                        r = null;\r
                }\r
-               // setup page header and footer\r
-               setupPage(getRepositoryName(), "/ " + getPageName());\r
+\r
                super.onBeforeRender();\r
        }\r
 \r