diff --git a/Makefile b/Makefile index bdcb73aa..81ee9163 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GOCHAN_DEBUG=1 GOCHAN_VERBOSE=2 GOCHAN_VERBOSITY=0 # This is set by "make release/debug/verbose" -GOCHAN_VERSION=1.9.2 +GOCHAN_VERSION=1.9.3 GOCHAN_BUILDTIME=$(shell date +%y%m%d.%H%M) ifeq ($(GOOS), windows) GOCHAN_BIN=gochan.exe @@ -33,4 +33,4 @@ ifndef GOPATH endif @echo ${GOCHAN_VERBOSITY} @echo ${GOCHAN_VERBOSE} - go build -v -ldflags "-w -X main.version=${GOCHAN_VERSION} -X main.buildtime_str=${GOCHAN_BUILDTIME} -X main.verbosity_str=${GOCHAN_VERBOSITY}" -o ${DIRNAME}${GOCHAN_BIN} ./src + go build -v -ldflags "-w -X main.version=${GOCHAN_VERSION} -X main.buildtimeString=${GOCHAN_BUILDTIME} -X main.verbosityString=${GOCHAN_VERBOSITY}" -o ${DIRNAME}${GOCHAN_BIN} ./src diff --git a/dist.sh b/dist.sh index 904eae3b..c195f808 100755 --- a/dist.sh +++ b/dist.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION=1.9.2 +VERSION=1.9.3 GOOS_ORIG=$GOOS function copyStuff { diff --git a/html/error/404.html b/html/error/404.html index 5da8db55..6ac497c6 100755 --- a/html/error/404.html +++ b/html/error/404.html @@ -7,6 +7,6 @@

404: File not found

The requested file could not be found on this server. Are you just typing random stuff in the address bar? If you followed a link from this site here, then post here

-
http://gochan.org powered by Gochan v1.9.2
+
http://gochan.org powered by Gochan v1.9.3
diff --git a/html/error/500.html b/html/error/500.html index f5829a8d..9c882758 100755 --- a/html/error/500.html +++ b/html/error/500.html @@ -7,6 +7,6 @@

500: Internal Server error

The server encountered an error while trying to serve the page, and we apologize for the inconvenience. The system administrator will try to fix things as soon has he/she/it can.

-
http://gochan.org powered by Gochan v1.9.2
+
http://gochan.org powered by Gochan v1.9.3
diff --git a/src/manage.go b/src/manage.go index 9e41c367..31485042 100644 --- a/src/manage.go +++ b/src/manage.go @@ -645,15 +645,13 @@ var manage_functions = map[string]ManageFunction{ "`anonymous`,`forced_anon`,`max_age`,`autosage_after`,`no_images_after`,`max_message_length`,`embeds_allowed`,"+ "`redirect_to_thread`,`require_file`,`enable_catalog`) "+ "VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", - []interface{}{ - &board.Order, &board.Dir, &board.Type, &board.UploadType, - &board.Title, &board.Subtitle, &board.Description, &board.Section, - &board.MaxImageSize, &board.MaxPages, &board.Locale, &board.DefaultStyle, - &board.Locked, &boardCreationTimestamp, &board.Anonymous, - &board.ForcedAnon, &board.MaxAge, &board.AutosageAfter, - &board.NoImagesAfter, &board.MaxMessageLength, &board.EmbedsAllowed, - &board.RedirectToThread, &board.RequireFile, &board.EnableCatalog, - }, + &board.Order, &board.Dir, &board.Type, &board.UploadType, + &board.Title, &board.Subtitle, &board.Description, &board.Section, + &board.MaxImageSize, &board.MaxPages, &board.Locale, &board.DefaultStyle, + &board.Locked, &boardCreationTimestamp, &board.Anonymous, + &board.ForcedAnon, &board.MaxAge, &board.AutosageAfter, + &board.NoImagesAfter, &board.MaxMessageLength, &board.EmbedsAllowed, + &board.RedirectToThread, &board.RequireFile, &board.EnableCatalog, ); err != nil { do = "" board_creation_status = handleError(1, "Error creating board: "+customError(err)) @@ -673,7 +671,7 @@ var manage_functions = map[string]ManageFunction{ // resetBoardSectionArrays() default: // put the default column values in the text boxes - rows, err = querySQL("SELECT `column_name`,`columnDefault` FROM `information_schema`.`columns` WHERE `table_name` = '" + config.DBprefix + "boards'") + rows, err = querySQL("SELECT `column_name`,`column_default` FROM `information_schema`.`columns` WHERE `table_name` = '" + config.DBprefix + "boards'") if err != nil { html += handleError(1, "Error getting column names from boards table:"+err.Error()) return diff --git a/src/posting.go b/src/posting.go index 2ae3fe67..beb3c43a 100755 --- a/src/posting.go +++ b/src/posting.go @@ -559,7 +559,7 @@ func buildBoardListJSON() (html string) { // bumps the given thread on the given board and returns true if there were no errors func bumpThread(postID, boardID int) error { _, err := execSQL("UPDATE `"+config.DBprefix+"posts` SET `bumped` = ? WHERE `id` = ? AND `boardid` = ?", - []interface{}{time.Now(), postID, boardID}, + time.Now(), postID, boardID, ) return err