Replace all $interval occurrences in query string

because template
Merge pull request #980 from maxstepanov/patch-1

Replace all $interval occurrences in query string