summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-01-14 06:28:04 -0800
committerJames Moger <james.moger@gitblit.com>2014-01-14 06:28:04 -0800
commit3c94742aed91c1e7597e4e75d967c1d7a6bdbb84 (patch)
treeff9b3d9b0bce435b8a2a43b96c5df78550117a88 /src/main/java
parent52f41d9519b574341ba9fd929c4e4afea3b15fd9 (diff)
parent24c3904256e7792e93f73edecb66dc851c527357 (diff)
downloadgitblit-3c94742aed91c1e7597e4e75d967c1d7a6bdbb84.tar.gz
gitblit-3c94742aed91c1e7597e4e75d967c1d7a6bdbb84.zip
Merge pull request #135 from kxyfyh/branch_fixbug
修正读取默认文件语言识别
Diffstat (limited to 'src/main/java')
-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);
}