fix not using thumb error
This commit is contained in:
parent
d3c9ad6c7e
commit
5c4611a386
|
@ -116,11 +116,11 @@ class AnnouncementsController < ApplicationController
|
||||||
subpart = OrbitHelper.get_current_widget
|
subpart = OrbitHelper.get_current_widget
|
||||||
anns_cache = AnnsCache.where(parent_id: subpart.id,locale: I18n.locale.to_s)
|
anns_cache = AnnsCache.where(parent_id: subpart.id,locale: I18n.locale.to_s)
|
||||||
widget_data_count = OrbitHelper.widget_data_count
|
widget_data_count = OrbitHelper.widget_data_count
|
||||||
|
set_image_version_for_widget
|
||||||
if !(defined? SiteFeed).nil? || anns_cache.count != 1 || is_random
|
if !(defined? SiteFeed).nil? || anns_cache.count != 1 || is_random
|
||||||
page = Page.where(:module => "announcement").first rescue nil
|
page = Page.where(:module => "announcement").first rescue nil
|
||||||
Bulletin.remove_expired_status
|
Bulletin.remove_expired_status
|
||||||
uid = OrbitHelper.params[:uid] rescue ""
|
uid = OrbitHelper.params[:uid] rescue ""
|
||||||
set_image_version_for_widget
|
|
||||||
sorted_anns = Bulletin.where(:title.nin => ["",nil],:is_preview.in=>[false,nil], :uid.ne => uid)
|
sorted_anns = Bulletin.where(:title.nin => ["",nil],:is_preview.in=>[false,nil], :uid.ne => uid)
|
||||||
.can_display_and_sorted.is_approved
|
.can_display_and_sorted.is_approved
|
||||||
.filter_by_widget_categories(cats,false).filter_by_tags(tags)
|
.filter_by_widget_categories(cats,false).filter_by_tags(tags)
|
||||||
|
|
Loading…
Reference in New Issue