diff options
Diffstat (limited to 'system/admin')
-rw-r--r-- | system/admin/admin.go | 7 | ||||
-rw-r--r-- | system/admin/handlers.go | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go index 768a740..78f607d 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -86,10 +86,9 @@ var endAdminHTML = ` </html>` type admin struct { - Logo string - Types map[string]func() interface{} - Subview template.HTML - HTTPPort string + Logo string + Types map[string]func() interface{} + Subview template.HTML } // Admin ... diff --git a/system/admin/handlers.go b/system/admin/handlers.go index b9408cf..266535a 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -85,7 +85,6 @@ func initHandler(res http.ResponseWriter, req *http.Request) { // set HTTP port which should be previously added to config cache port := db.ConfigCache("http_port") - fmt.Println("port from config (init handler)", port) req.Form.Set("http_port", port) // set initial user email as admin_email and make config @@ -1294,7 +1293,6 @@ func editHandler(res http.ResponseWriter, req *http.Request) { } if len(data) < 1 || data == nil { - fmt.Println(string(data)) res.WriteHeader(http.StatusNotFound) errView, err := Error404() if err != nil { |