summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 23c41b6e92..b817f10bc2 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -91,12 +91,13 @@ var (
AnsiCharset string
// UI settings.
- ExplorePagingNum int
- IssuePagingNum int
- AdminUserPagingNum int
- AdminRepoPagingNum int
+ ExplorePagingNum int
+ IssuePagingNum int
+ FeedMaxCommitNum int
+ AdminUserPagingNum int
+ AdminRepoPagingNum int
AdminNoticePagingNum int
- AdminOrgPagingNum int
+ AdminOrgPagingNum int
// Markdown sttings.
Markdown struct {
@@ -370,6 +371,7 @@ func NewContext() {
sec = Cfg.Section("ui")
ExplorePagingNum = sec.Key("EXPLORE_PAGING_NUM").MustInt(20)
IssuePagingNum = sec.Key("ISSUE_PAGING_NUM").MustInt(10)
+ FeedMaxCommitNum = sec.Key("FEED_MAX_COMMIT_NUM").MustInt(5)
sec = Cfg.Section("ui.admin")
AdminUserPagingNum = sec.Key("USER_PAGING_NUM").MustInt(50)