File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ package admin
7
7
import (
8
8
"net/http"
9
9
"net/url"
10
- "strconv"
11
10
"strings"
12
11
13
12
"code.gitea.io/gitea/models"
@@ -111,7 +110,7 @@ func UnadoptedRepos(ctx *context.Context) {
111
110
func AdoptOrDeleteRepository (ctx * context.Context ) {
112
111
dir := ctx .FormString ("id" )
113
112
action := ctx .FormString ("action" )
114
- page := ctx .FormInt ("page" )
113
+ page := ctx .FormString ("page" )
115
114
q := ctx .FormString ("q" )
116
115
117
116
dirSplit := strings .SplitN (dir , "/" , 2 )
@@ -162,5 +161,5 @@ func AdoptOrDeleteRepository(ctx *context.Context) {
162
161
}
163
162
ctx .Flash .Success (ctx .Tr ("repo.delete_preexisting_success" , dir ))
164
163
}
165
- ctx .Redirect (setting .AppSubURL + "/admin/repos/unadopted?search=true&q=" + url .QueryEscape (q ) + "&page=" + strconv . Itoa ( page ) )
164
+ ctx .Redirect (setting .AppSubURL + "/admin/repos/unadopted?search=true&q=" + url .QueryEscape (q ) + "&page=" + page )
166
165
}
You can’t perform that action at this time.
0 commit comments