]> source.dussan.org Git - gitblit.git/commitdiff
修正读取默认文件语言识别 135/head
authorTing <kxyfyh@vip.qq.com>
Tue, 14 Jan 2014 07:57:14 +0000 (15:57 +0800)
committerTing <kxyfyh@vip.qq.com>
Tue, 14 Jan 2014 09:20:19 +0000 (17:20 +0800)
src/main/java/com/gitblit/wicket/pages/MyDashboardPage.java
src/main/java/com/gitblit/wicket/pages/RepositoriesPage.java

index ba85b8224fa379f4aa575d923b7fe575c1e19564..0f7d602bbf3886116665fb643a1092aaa7b6b3c4 100644 (file)
@@ -238,7 +238,7 @@ public class MyDashboardPage extends DashboardPage {
                if (!StringUtils.isEmpty(lc)) {\r
                        if (!StringUtils.isEmpty(cc)) {\r
                                files.add(base + "_" + lc + "-" + cc + ext);\r
-                               files.add(base + "_" + lc + "_" + cc + ext);\r
+                               files.add(base + "_" + lc + "_" + cc.toUpperCase() + ext);\r
                        }\r
                        files.add(base + "_" + lc + ext);\r
                }\r
index 70266f8f6b76095ca43ab8ba0d2003f053eb8e7d..f4ddf40286602ea0458a3a93c2c574db1aaae0f8 100644 (file)
@@ -150,7 +150,7 @@ public class RepositoriesPage extends RootPage {
                if (!StringUtils.isEmpty(lc)) {\r
                        if (!StringUtils.isEmpty(cc)) {\r
                                files.add(base + "_" + lc + "-" + cc + ext);\r
-                               files.add(base + "_" + lc + "_" + cc + ext);\r
+                               files.add(base + "_" + lc + "_" + cc.toUpperCase() + ext);\r
                        }\r
                        files.add(base + "_" + lc + ext);\r
                }\r