From 46e96c008cf966428c9dad71c7871de88186e3fe Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 24 Jul 2016 00:23:54 +0800 Subject: Use struct for UI settings --- routers/api/v1/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api') diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go index bf2c8e9ddf..a3f69d3f81 100644 --- a/routers/api/v1/repo/issue.go +++ b/routers/api/v1/repo/issue.go @@ -31,7 +31,7 @@ func ListIssues(ctx *context.APIContext) { apiIssues[i] = convert.ToIssue(issues[i]) } - ctx.SetLinkHeader(ctx.Repo.Repository.NumIssues, setting.IssuePagingNum) + ctx.SetLinkHeader(ctx.Repo.Repository.NumIssues, setting.UI.IssuePagingNum) ctx.JSON(200, &apiIssues) } -- cgit v1.2.3