Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1210d4

Browse files
committed
bugfix
1 parent 50b4651 commit c1210d4

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/logic/setting.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,14 @@ func (SettingLogic) Update(ctx context.Context, form url.Values) error {
5555
WebsiteSetting.Logo = logo
5656
}
5757

58-
blogUrl := form.Get("blog_url")
59-
if blogUrl != "" {
60-
WebsiteSetting.BlogUrl = blogUrl
61-
}
58+
WebsiteSetting.BlogUrl = form.Get("blog_url")
6259

6360
slogan := form.Get("slogan")
6461
if slogan != "" {
6562
WebsiteSetting.Slogan = slogan
6663
}
6764

68-
beian := form.Get("beian")
69-
if beian != "" {
70-
WebsiteSetting.Beian = beian
71-
}
65+
WebsiteSetting.Beian = form.Get("beian")
7266

7367
if docNameSlice, ok := form["doc_name"]; ok {
7468
docUrlSlice := form["doc_url"]

src/model/website_setting.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ func (this *WebsiteSetting) AfterSet(name string, cell xorm.Cell) {
6262
this.DocMenus = this.unmarshalDocsMenu()
6363
} else if name == "friends_logo" {
6464
this.FriendLogos = this.unmarshalFriendsLogo()
65+
} else if name == "footer_nav" {
66+
this.FooterNavs = this.unmarshalFooterNav()
6567
}
6668
}
6769

0 commit comments

Comments
 (0)