diff --git a/r2/r2/controllers/listingcontroller.py b/r2/r2/controllers/listingcontroller.py index 3ed28be75..207518ef4 100644 --- a/r2/r2/controllers/listingcontroller.py +++ b/r2/r2/controllers/listingcontroller.py @@ -413,23 +413,23 @@ class BrowseController(ListingController): # TODO: this is a hack with sort. @validate(sort = VOneOf('sort', ('top', 'controversial')), - time = VMenu('where', ControversyTimeMenu)) - def POST_listing(self, sort, time, **env): + t = VMenu('sort', ControversyTimeMenu)) + def POST_listing(self, sort, t, **env): # VMenu validator will save the value of time before we reach this # point. Now just redirect to GET mode. return self.redirect( - request.fullpath + query_string(dict(sort=sort, time=time))) + request.fullpath + query_string(dict(sort=sort, t=t))) # TODO: this is a hack with sort. @validate(sort = VOneOf('sort', ('top', 'controversial')), - time = VMenu('where', ControversyTimeMenu)) - def GET_listing(self, sort, time, **env): + t = VMenu('sort', ControversyTimeMenu)) + def GET_listing(self, sort, t, **env): self.sort = sort if sort == 'top': self.title_text = _('top scoring links') elif sort == 'controversial': self.title_text = _('most controversial links') - self.time = time + self.time = t return ListingController.GET_listing(self, **env)