From 4570856f4a114ae93036554d8b4fb315b8bc5989 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 16 May 2013 07:42:26 -0400 Subject: Fixed sitename in page title --- src/main/java/com/gitblit/wicket/pages/BasePage.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/gitblit') diff --git a/src/main/java/com/gitblit/wicket/pages/BasePage.java b/src/main/java/com/gitblit/wicket/pages/BasePage.java index 9a1d467a..39713b3f 100644 --- a/src/main/java/com/gitblit/wicket/pages/BasePage.java +++ b/src/main/java/com/gitblit/wicket/pages/BasePage.java @@ -127,14 +127,15 @@ public abstract class BasePage extends SessionPage { } protected void setupPage(String repositoryName, String pageName) { + String siteName = GitBlit.getString(Keys.web.siteName, Constants.NAME); if (repositoryName != null && repositoryName.trim().length() > 0) { - add(new Label("title", repositoryName + " - " + Keys.web.siteName)); + add(new Label("title", repositoryName + " - " + siteName)); } else { - add(new Label("title", Keys.web.siteName)); + add(new Label("title", siteName)); } ExternalLink rootLink = new ExternalLink("rootLink", urlFor(RepositoriesPage.class, null).toString()); - WicketUtils.setHtmlTooltip(rootLink, GitBlit.getString(Keys.web.siteName, Constants.NAME)); + WicketUtils.setHtmlTooltip(rootLink, siteName); add(rootLink); // Feedback panel for info, warning, and non-fatal error messages -- cgit v1.2.3