Fix bug in deletion of subreddit header image.

Due to spriting etc. it doesn't make sense to replace
this image anyway, so just delete this line that was
causing issues because DefaultSR.header is a property
object, not an actual value!
This commit is contained in:
Neil Williams
2012-04-19 15:07:06 -07:00
parent 6737bb1bbf
commit bccb2ff1a4

View File

@@ -1258,8 +1258,6 @@ class ApiController(RedditController):
c.site.sponsorship_size = None
c.site._commit()
elif c.site.header:
# reset the header image on the page
jquery('#header-img').attr("src", DefaultSR.header)
c.site.header = None
c.site.header_size = None
c.site._commit()