diff options
author | Unknwon <u@gogs.io> | 2015-09-01 07:04:35 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-01 07:04:35 -0400 |
commit | 7714e792a4ff5b179c24b1db35a5d452716c47f0 (patch) | |
tree | e0b0a08395de1d7400faba2d2d303b5d333c8730 /modules/setting | |
parent | 67f07e21f55c599eb335806e054b7d40d28b4e3e (diff) | |
download | gitea-7714e792a4ff5b179c24b1db35a5d452716c47f0.tar.gz gitea-7714e792a4ff5b179c24b1db35a5d452716c47f0.zip |
minor fixes on #1551
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 05f4556a48..009e14a4ae 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -91,7 +91,8 @@ var ( AnsiCharset string // UI settings. - IssuePagingNum int + ExplorePagingNum int + IssuePagingNum int // Picture settings. PictureService string @@ -352,6 +353,7 @@ func NewConfigContext() { AnsiCharset = sec.Key("ANSI_CHARSET").MustString("") // UI settings. + ExplorePagingNum = Cfg.Section("ui").Key("EXPLORE_PAGING_NUM").MustInt(20) IssuePagingNum = Cfg.Section("ui").Key("ISSUE_PAGING_NUM").MustInt(10) sec = Cfg.Section("picture") |