summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-25 20:35:56 -0400
committerUnknwon <u@gogs.io>2015-09-25 20:35:56 -0400
commit6dfee30bf0a6faef3211eb9fd1587c4fd8e87eef (patch)
tree0200056e4ad2bc5f7de3840429c17265ff0b0ce7 /modules/setting
parent21e13cb51e73471d186b963e26404f89abd81fce (diff)
downloadgitea-6dfee30bf0a6faef3211eb9fd1587c4fd8e87eef.tar.gz
gitea-6dfee30bf0a6faef3211eb9fd1587c4fd8e87eef.zip
#1602 Wrong commit order on issue page when pushing multiple commits
Diffstat (limited to 'modules/setting')
-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)