mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:00:54 +00:00
replace filterPos to pos
This commit is contained in:
parent
47fc32ba47
commit
8c3b936c60
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user