Working on install page

This commit is contained in:
Unknown 2014-03-28 18:40:31 -04:00
parent a55941ff83
commit 6e376bb85c
4 changed files with 57 additions and 6 deletions

View file

@ -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