fix error
This commit is contained in:
parent
fed8ec372c
commit
ab9f85467e
|
@ -196,7 +196,7 @@ module AnnouncementsHelper
|
||||||
end
|
end
|
||||||
if !(defined? SiteFeed).nil?
|
if !(defined? SiteFeed).nil?
|
||||||
if @type != "show_widget"
|
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
|
else
|
||||||
feeds_anns = []
|
feeds_anns = []
|
||||||
end
|
end
|
||||||
|
@ -204,7 +204,7 @@ module AnnouncementsHelper
|
||||||
else
|
else
|
||||||
announcements = []
|
announcements = []
|
||||||
if @type != "show_widget"
|
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
|
else
|
||||||
feeds_anns = []
|
feeds_anns = []
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue