aboutsummaryrefslogtreecommitdiff
path: root/routers/admin/notice.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-24 00:23:54 +0800
committerUnknwon <u@gogs.io>2016-07-24 00:23:54 +0800
commit46e96c008cf966428c9dad71c7871de88186e3fe (patch)
tree57e276d8f971c74a6dac841352ec2bee96e93d8f /routers/admin/notice.go
parent256cd6374adf646a46265efe18a2d3f822bf7269 (diff)
Use struct for UI settings
Diffstat (limited to 'routers/admin/notice.go')
-rw-r--r--routers/admin/notice.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/admin/notice.go b/routers/admin/notice.go
index 09222eb8..5d4e807e 100644
--- a/routers/admin/notice.go
+++ b/routers/admin/notice.go
@@ -29,9 +29,9 @@ func Notices(ctx *context.Context) {
if page <= 1 {
page = 1
}
- ctx.Data["Page"] = paginater.New(int(total), setting.AdminNoticePagingNum, page, 5)
+ ctx.Data["Page"] = paginater.New(int(total), setting.UI.Admin.NoticePagingNum, page, 5)
- notices, err := models.Notices(page, setting.AdminNoticePagingNum)
+ notices, err := models.Notices(page, setting.UI.Admin.NoticePagingNum)
if err != nil {
ctx.Handle(500, "Notices", err)
return