diff options
author | Ting <kxyfyh@vip.qq.com> | 2014-01-14 15:57:14 +0800 |
---|---|---|
committer | Ting <kxyfyh@vip.qq.com> | 2014-01-14 17:20:19 +0800 |
commit | 24c3904256e7792e93f73edecb66dc851c527357 (patch) | |
tree | 8886eafdabe02c6a1713e433e2a588e02028e438 /src/main | |
parent | 1dda945c4e8f882c953ac09c70bc6af8232a62e1 (diff) | |
download | gitblit-24c3904256e7792e93f73edecb66dc851c527357.tar.gz gitblit-24c3904256e7792e93f73edecb66dc851c527357.zip |
修正读取默认文件语言识别
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java | 2 | ||||
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java | 2 |
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);
}
|