Skip to content

Commit

Permalink
small refinement, matter of taste really
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter McGinnis committed Oct 5, 2008
1 parent e2e974b commit b2de289
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/controllers/index_page_controller.rb
Expand Up @@ -61,13 +61,10 @@ def index
stats_by_type_for(@current_basket)
end


# prepare blog list of most recent topics
# replace limit with param from basket
@recent_topics_limit = @current_basket.index_page_number_of_recent_topics
if @recent_topics_limit.blank?
@recent_topics_limit = 0
end
@recent_topics_limit = @current_basket.index_page_number_of_recent_topics.blank? ? 0 : @current_basket.index_page_number_of_recent_topics

# exclude index_topic
if @recent_topics_limit > 0
recent_query_hash = { :limit => @recent_topics_limit, :order => 'created_at desc'}
Expand Down

0 comments on commit b2de289

Please sign in to comment.