From: Ting Date: Tue, 14 Jan 2014 07:57:14 +0000 (+0800) Subject: 修正读取默认文件语言识别 X-Git-Tag: v1.4.0~129^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=24c3904256e7792e93f73edecb66dc851c527357;p=gitblit.git 修正读取默认文件语言识别 --- diff --git a/src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java b/src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java index ba85b822..0f7d602b 100644 --- a/src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java +++ b/src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java @@ -238,7 +238,7 @@ public class MyDashboardPage extends DashboardPage { if (!StringUtils.isEmpty(lc)) { if (!StringUtils.isEmpty(cc)) { files.add(base + "_" + lc + "-" + cc + ext); - files.add(base + "_" + lc + "_" + cc + ext); + files.add(base + "_" + lc + "_" + cc.toUpperCase() + ext); } files.add(base + "_" + lc + ext); } diff --git a/src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java b/src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java index 70266f8f..f4ddf402 100644 --- a/src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java +++ b/src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java @@ -150,7 +150,7 @@ public class RepositoriesPage extends RootPage { if (!StringUtils.isEmpty(lc)) { if (!StringUtils.isEmpty(cc)) { files.add(base + "_" + lc + "-" + cc + ext); - files.add(base + "_" + lc + "_" + cc + ext); + files.add(base + "_" + lc + "_" + cc.toUpperCase() + ext); } files.add(base + "_" + lc + ext); }