delete useless variable in link widget controller

This commit is contained in:
thomaschen 2013-12-13 15:41:55 +08:00 committed by saurabhbhatia
parent 03b29a7b4a
commit 0ab7041341
1 changed files with 1 additions and 5 deletions

View File

@ -27,10 +27,6 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
@widget_style = @part.widget_style @widget_style = @part.widget_style
@category_id = @part.category
date_now = Time.now
if !params[:category_id].blank? if !params[:category_id].blank?
@web_link_categorys = @module_app.categories.enabled.any_in(:_id => params[:category_id]) @web_link_categorys = @module_app.categories.enabled.any_in(:_id => params[:category_id])
else else
@ -63,7 +59,7 @@ class Panel::WebResource::Widget::WebLinksController < OrbitWidgetController
end end
@web_link_datas << { "title" => wlcg.title, "web_links" => web_link_datas } if !@web_links.blank? @web_link_datas << { "title" => wlcg.title, "web_links" => web_link_datas } if !@web_links.blank?
end end
end end