Working on install page
This commit is contained in:
parent
a55941ff83
commit
6e376bb85c
4 changed files with 57 additions and 6 deletions
|
@ -8,11 +8,12 @@ import (
|
|||
"errors"
|
||||
|
||||
"github.com/gogits/gogs/models"
|
||||
"github.com/gogits/gogs/modules/auth"
|
||||
"github.com/gogits/gogs/modules/base"
|
||||
"github.com/gogits/gogs/modules/middleware"
|
||||
)
|
||||
|
||||
func Install(ctx *middleware.Context) {
|
||||
func Install(ctx *middleware.Context, form auth.InstallForm) {
|
||||
if base.InstallLock {
|
||||
ctx.Handle(404, "install.Install", errors.New("Installation is prohibited"))
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue