Subreddit: Do not show wiki tab on fake subreddits

This commit is contained in:
Andre D
2012-09-11 20:24:56 -05:00
committed by Neil Williams
parent 90a777511f
commit 024a7d55be

View File

@@ -421,7 +421,7 @@ class Reddit(Templated):
mod = False
if c.user_is_loggedin:
mod = bool(c.user_is_admin or c.site.is_moderator(c.user))
if c.site.wikimode != 'disabled' or mod:
if c.site._should_wiki and (c.site.wikimode != 'disabled' or mod):
if not g.wiki_disabled:
main_buttons.append(NavButton('wiki', 'wiki'))