1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 14:20:51 +00:00

replace filterPos to pos

This commit is contained in:
knightmare 2013-11-25 16:04:02 +08:00
parent 47fc32ba47
commit 8c3b936c60

View File

@ -284,9 +284,9 @@ func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc
p.enableFilter = true
}
func (p *ControllerRegistor) InsertFilter(pattern string, filterPos int, filter FilterFunc) {
func (p *ControllerRegistor) InsertFilter(pattern string, pos int, filter FilterFunc) {
mr := buildFilter(pattern, filter)
p.filters[filterPos] = append(p.filters[filterPos], mr)
p.filters[pos] = append(p.filters[pos], mr)
p.enableFilter = true
}