File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
"code.gitea.io/gitea/modules/base"
12
12
code_indexer "code.gitea.io/gitea/modules/indexer/code"
13
13
"code.gitea.io/gitea/modules/setting"
14
- "code.gitea.io/gitea/modules/templates"
15
14
"code.gitea.io/gitea/routers/common"
16
15
"code.gitea.io/gitea/services/context"
17
16
)
@@ -132,7 +131,7 @@ func Code(ctx *context.Context) {
132
131
133
132
pager := context .NewPagination (total , setting .UI .RepoSearchPagingNum , page , 5 )
134
133
pager .SetDefaultParams (ctx )
135
- pager .AddParamString ("l" , language )
134
+ pager .AddParamString ("l" , prepareSearch . Language )
136
135
ctx .Data ["Page" ] = pager
137
136
138
137
ctx .HTML (http .StatusOK , tplExploreCode )
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
"code.gitea.io/gitea/modules/git"
13
13
code_indexer "code.gitea.io/gitea/modules/indexer/code"
14
14
"code.gitea.io/gitea/modules/setting"
15
- "code.gitea.io/gitea/modules/templates"
16
15
"code.gitea.io/gitea/routers/common"
17
16
"code.gitea.io/gitea/services/context"
18
17
)
@@ -102,7 +101,7 @@ func Search(ctx *context.Context) {
102
101
103
102
pager := context .NewPagination (total , setting .UI .RepoSearchPagingNum , page , 5 )
104
103
pager .SetDefaultParams (ctx )
105
- pager .AddParamString ("l" , language )
104
+ pager .AddParamString ("l" , prepareSearch . Language )
106
105
ctx .Data ["Page" ] = pager
107
106
108
107
ctx .HTML (http .StatusOK , tplSearch )
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
"code.gitea.io/gitea/modules/base"
12
12
code_indexer "code.gitea.io/gitea/modules/indexer/code"
13
13
"code.gitea.io/gitea/modules/setting"
14
- "code.gitea.io/gitea/modules/templates"
15
14
"code.gitea.io/gitea/routers/common"
16
15
shared_user "code.gitea.io/gitea/routers/web/shared/user"
17
16
"code.gitea.io/gitea/services/context"
@@ -115,7 +114,7 @@ func CodeSearch(ctx *context.Context) {
115
114
116
115
pager := context .NewPagination (total , setting .UI .RepoSearchPagingNum , page , 5 )
117
116
pager .SetDefaultParams (ctx )
118
- pager .AddParamString ("l" , language )
117
+ pager .AddParamString ("l" , prepareSearch . Language )
119
118
ctx .Data ["Page" ] = pager
120
119
121
120
ctx .HTML (http .StatusOK , tplUserCode )
You can’t perform that action at this time.
0 commit comments