Project

General

Profile

Feature #41976 ยป 0001-Fix-Avoid-literal-string-will-be-frozen-in-the-futur.patch

Go MAEDA, 2024-12-13 08:19

View differences:

app/views/gantts/show.html.erb
309 309
      style += "height:#{height}px;"
310 310
      style += "font-size:0.7em;"
311 311
      clss = "gantt_hdr"
312
      clss << " nwday" if @gantt.non_working_week_days.include?(wday)
312
      clss += " nwday" if @gantt.non_working_week_days.include?(wday)
313 313
    %>
314 314
    <%= content_tag(:div, :style => style, :class => clss) do %>
315 315
      <%= day_num.day %>
......
340 340
      style += "height: #{height}px;"
341 341
      style += "font-size:0.7em;"
342 342
      clss = "gantt_hdr"
343
      clss << " nwday" if @gantt.non_working_week_days.include?(g_date.cwday)
343
      clss += " nwday" if @gantt.non_working_week_days.include?(g_date.cwday)
344 344
    %>
345 345
    <%= content_tag(:div, :style => style, :class => clss) do %>
346 346
      <%= day_letter(g_date.cwday) %>
app/views/repositories/_breadcrumbs.html.erb
9 9
  @repository.identifier.presence || 'root', :action => 'show',
10 10
  :id => @project, :repository_id => @repository.identifier_param,
11 11
  :path => nil, :rev => @rev)
12
link_path = ''
12
link_path = +''
13 13

  
14 14
dirs.each do |dir|
15 15
    next if dir.blank?
lib/redmine/i18n.rb
151 151
            languages_options :cache => false
152 152
          end
153 153
        end
154
      options.map {|name, lang| [name.force_encoding("UTF-8"), lang.force_encoding("UTF-8")]}
154
      options.map {|name, lang| [(+name).force_encoding("UTF-8"), (+lang).force_encoding("UTF-8")]}
155 155
    end
156 156

  
157 157
    def find_language(lang)
    (1-1/1)