Update archives_controller.rb
This commit is contained in:
parent
e35990d364
commit
06fa9989fc
|
@ -251,6 +251,7 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
|||
end
|
||||
|
||||
def widget
|
||||
begin
|
||||
check_cat_sort_data()
|
||||
if ArchiveSortOrder.count == 0
|
||||
ArchiveSortOrder.new('sort_order' => false).save
|
||||
|
@ -316,6 +317,9 @@ F cats = files_by_cateogry.keys.collect do |cat|
|
|||
"archives" => archives
|
||||
}
|
||||
end
|
||||
rescue => e
|
||||
puts e
|
||||
end
|
||||
{
|
||||
"categories" => cats,
|
||||
"extras" => {"widget-title" => "Archives","more_url" => (OrbitHelper.widget_more_url + '?data_count=' + page_data_count.to_s)}
|
||||
|
|
Loading…
Reference in New Issue