Commit ab99d5f1 authored by astaxie's avatar astaxie

Merge pull request #957 from athurg/patch-2

Fix paginator attributes cannot be modified bug
parents 9c665afc c52f634d
......@@ -21,6 +21,6 @@ import (
// Instantiates a Paginator and assigns it to context.Input.Data["paginator"].
func SetPaginator(context *context.Context, per int, nums int64) (paginator *Paginator) {
paginator = NewPaginator(context.Request, per, nums)
context.Input.Data["paginator"] = paginator
context.Input.Data["paginator"] = &paginator
return
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment