summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorTing <kxyfyh@vip.qq.com>2014-01-14 15:57:14 +0800
committerTing <kxyfyh@vip.qq.com>2014-01-14 17:20:19 +0800
commit24c3904256e7792e93f73edecb66dc851c527357 (patch)
tree8886eafdabe02c6a1713e433e2a588e02028e438 /src/main
parent1dda945c4e8f882c953ac09c70bc6af8232a62e1 (diff)
downloadgitblit-24c3904256e7792e93f73edecb66dc851c527357.tar.gz
gitblit-24c3904256e7792e93f73edecb66dc851c527357.zip
修正读取默认文件语言识别
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java2
-rw-r--r--src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java2
2 files changed, 2 insertions, 2 deletions
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);
}