restore last fix
This commit is contained in:
parent
2c72a8852d
commit
42daeb733a
|
@ -107,7 +107,7 @@ class NewsController < ApplicationController
|
|||
def widget
|
||||
params = OrbitHelper.params
|
||||
!params[:sort].blank? ? sort = {params[:sort].to_sym=>params[:order]} : sort = {:is_top=>"desc",:postdate=>"desc"}
|
||||
news = NewsBulletin.where(:title.ne => "",:is_preview.in=>[false,nil],:is_hot => true).can_display.is_approved.order_by(sort).filter_by_widget_categories if news.nil?
|
||||
news = NewsBulletin.where(:title.ne => "",:is_preview.in=>[false,nil],:is_hot => true).is_approved.order_by(sort).filter_by_widget_categories if news.nil?
|
||||
|
||||
page = Page.where(:module => "news").first rescue nil
|
||||
ma = ModuleApp.find_by_key("news") rescue nil
|
||||
|
|
Loading…
Reference in New Issue