0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-03 16:52:10 +02:00

refactor: bring some function calls up to date

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2026-04-02 22:24:52 -04:00
parent 5df1eafe98
commit ab453a9dff
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ func Home(ctx *context.Context) {
ctx.Data["Repos"] = repos
ctx.Data["Total"] = count
pager := context.NewPagination(int(count), setting.UI.User.RepoPagingNum, page, 5)
pager := context.NewPagination(count, setting.UI.User.RepoPagingNum, page, 5)
pager.AddParamFromRequest(ctx.Req)
ctx.Data["Page"] = pager
ctx.HTML(http.StatusOK, tplGroupHome)

View File

@ -141,7 +141,7 @@ func EditTeamPost(ctx *context.Context) {
return
}
if gt.AccessMode < perm.AccessModeAdmin && len(unitPerms) == 0 {
ctx.RenderWithErr(ctx.Tr("form.team_no_units_error"), tplTeamEdit, &form)
ctx.RenderWithErrDeprecated(ctx.Tr("form.team_no_units_error"), tplTeamEdit, &form)
return
}
if err := group_service.UpdateGroupTeam(ctx, gt); err != nil {

View File

@ -56,7 +56,7 @@ func DashboardHeatmap(ctx *context.Context) {
if ctx.Org.Organization == nil {
data, err = activities_model.GetUserHeatmapDataByUser(ctx, ctx.ContextUser, ctx.Doer)
} else {
data, err = activities_model.GetUserHeatmapDataByOrgTeam(ctx, ctx.Org.Organization, ctx.Org.Team, ctx.Doer)
data, err = activities_model.GetUserHeatmapDataByOrgTeam(ctx, ctx.Org.Organization, ctx.Org.Team, ctx.RepoGroup.Group, ctx.Doer)
}
if err != nil {
ctx.ServerError("GetUserHeatmapData", err)