fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
module AdvertisementsHelper
|
module AdvertisementsHelper
|
||||||
def render_advertisement(ad_type, post_set)
|
def render_advertisement(ad_type)
|
||||||
if Danbooru.config.can_user_see_ads?(CurrentUser.user)
|
if Danbooru.config.can_user_see_ads?(CurrentUser.user)
|
||||||
@advertisement = Advertisement.find(:first, :conditions => ["ad_type = ? AND status = 'active'", ad_type], :order => "random()")
|
@advertisement = Advertisement.find(:first, :conditions => ["ad_type = ? AND status = 'active'", ad_type], :order => "random()")
|
||||||
content_tag(
|
content_tag(
|
||||||
|
|||||||
Reference in New Issue
Block a user