This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

reddit: Do not embed gold form inside wiki pages.

  • Loading branch information...
andre-d authored and spladug committed Nov 26, 2012
1 parent 3bc9344 commit 9116402109e991a4ab7fbcf960758eb25f9045f6
Showing with 2 additions and 1 deletion.
  1. +2 −1 r2/r2/lib/pages/pages.py
View
@@ -193,7 +193,8 @@ def __init__(self, space_compress = True, nav_menus = None, loginbox = True,
if srbar and not c.cname and not is_api():
self.srtopbar = SubredditTopBar()
- if c.user_is_loggedin and self.show_sidebar and not is_api():
+ if (c.user_is_loggedin and self.show_sidebar
+ and not is_api() and not self.show_wiki_actions):
# insert some form templates for js to use
# TODO: move these to client side templates
gold = GoldPayment("gift",

0 comments on commit 9116402

Please sign in to comment.