]> source.dussan.org Git - gitea.git/commitdiff
fix #664
authorUnknwon <joe2010xtmf@163.com>
Wed, 26 Nov 2014 04:05:43 +0000 (23:05 -0500)
committerUnknwon <joe2010xtmf@163.com>
Wed, 26 Nov 2014 04:05:43 +0000 (23:05 -0500)
gogs.go
routers/repo/commit.go
templates/.VERSION

diff --git a/gogs.go b/gogs.go
index 2cecb58be5b076c04d2c3abfff8ca54d57ce06e2..00ac2456e9ae73b1523aaaacc69b8d380f427198 100644 (file)
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
        "github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.5.8.1124 Beta"
+const APP_VER = "0.5.8.1125 Beta"
 
 func init() {
        runtime.GOMAXPROCS(runtime.NumCPU())
index 4a974aab8d3922c1880a92eed5d47672c6d60370..1174e62661881e9b5ebcf0fc797812f7aa04851a 100644 (file)
@@ -62,7 +62,7 @@ func Commits(ctx *middleware.Context) {
                lastPage = 0
        }
        nextPage := page + 1
-       if nextPage*50 > commitsCount {
+       if page*50 > commitsCount {
                nextPage = 0
        }
 
index d4908c46cc0d98e48280d3c31eb2ff2fd6a21dc8..d244b039eba1e8de28887721af8ffdf4b40d9956 100644 (file)
@@ -1 +1 @@
-0.5.8.1124 Beta
\ No newline at end of file
+0.5.8.1125 Beta
\ No newline at end of file