Skip to content

Commit

Permalink
bug fixed in tag menu (zamith)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropereira committed Apr 3, 2012
1 parent 98f8cec commit 9da6b12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions site_files/app/helpers/widget_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ def weather_condition_image(condition)

# Show tags as a 2 level menu of limit elements (can be acompanied by the tag_header)
def tag_menu_widget(tags, limit=10, just_items=false)
tags_for_cloud = Rails.cache.fetch("tags_for_cloud") do
Tag.tags_for_menu(tags, limit)
end
tags_for_cloud = YAML::load(Rails.cache.fetch("tags_for_cloud"){Tag.tags_for_menu(tags, limit).to_yaml})

render :partial => 'widgets/tag_menu',
:locals => {
:tags_for_cloud => tags_for_cloud,
Expand Down

0 comments on commit 9da6b12

Please sign in to comment.