##// END OF EJS Templates
Code cleanup (#14766)....
Jean-Philippe Lang -
r12383:b9f45c80c655
parent child
Show More
@@ -139,7 +139,7 class MyController < ApplicationController
139 139 @blocks = @user.pref[:my_page_layout] || DEFAULT_LAYOUT.dup
140 140 @block_options = []
141 141 BLOCKS.each do |k, v|
142 unless %w(top left right).detect {|f| (@blocks[f] ||= []).include?(k)}
142 unless @blocks.values.flatten.include?(k)
143 143 @block_options << [l("my.blocks.#{v}", :default => [v, v.to_s.humanize]), k.dasherize]
144 144 end
145 145 end
General Comments 0
You need to be logged in to leave comments. Login now