diff options
Diffstat (limited to 'routers/repo/view.go')
-rw-r--r-- | routers/repo/view.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index e787879d86..7bcdc1293c 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -105,7 +105,7 @@ func Home(ctx *context.Context) { case isImageFile: ctx.Data["IsImageFile"] = true case isTextFile: - if blob.Size() >= setting.MaxDisplayFileSize { + if blob.Size() >= setting.UI.MaxDisplayFileSize { ctx.Data["IsFileTooLarge"] = true } else { ctx.Data["IsFileTooLarge"] = false |