fix error
This commit is contained in:
parent
fed8ec372c
commit
ab9f85467e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue