Added disable user sign up feature

This commit is contained in:
Torkel Ödegaard
2015-01-29 15:46:54 +01:00
parent d95c5e6674
commit 04d03f73b3
9 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func GetContextHandler() macaron.Handler {
func (ctx *Context) Handle(status int, title string, err error) {
if err != nil {
log.Error(4, "%s: %v", title, err)
if macaron.Env != macaron.PROD {
if setting.Env != setting.PROD {
ctx.Data["ErrorMsg"] = err
}
}