fix error

This commit is contained in:
邱博亞 2021-12-28 16:08:55 +08:00
parent fed8ec372c
commit ab9f85467e
1 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ module AnnouncementsHelper
end
if !(defined? SiteFeed).nil?
if @type != "show_widget"
feeds_anns = get_feed_announcements("index",nil,nil,page_number*page_data_count)
feeds_anns = get_feed_announcements("index",nil,categories,page_number*page_data_count)
else
feeds_anns = []
end
@ -204,7 +204,7 @@ module AnnouncementsHelper
else
announcements = []
if @type != "show_widget"
feeds_anns = get_feed_announcements("index",params["source"],nil,page_number*page_data_count)
feeds_anns = get_feed_announcements("index",params["source"],categories,page_number*page_data_count)
else
feeds_anns = []
end