Fix case sensitivity in "hot/top/new" tab menu highlighting.

This commit is contained in:
Max Goodman
2013-06-13 02:02:02 -07:00
parent 44349ec2f2
commit a559fb7c0f

View File

@@ -305,7 +305,8 @@ class NavButton(Styled):
else:
if self.stripped_path == self.bare_path:
return True
if self.sr_path and self.stripped_path == c.site.path + self.bare_path:
site_path = c.site.path.lower() + self.bare_path
if self.sr_path and self.stripped_path == site_path:
return True
if self.bare_path and self.stripped_path.startswith(self.bare_path):
return True