diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-30 15:42:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-30 15:42:48 +0000 |
commit | de17e5a398832999092aa22eadb766e738f81d66 (patch) | |
tree | d40d74614647fdfc385eca6e82a6bf6482254590 /app | |
parent | e8201c0d7e5f07848cfce02a5a44bb42100e24c2 (diff) | |
download | redmine-de17e5a398832999092aa22eadb766e738f81d66.tar.gz redmine-de17e5a398832999092aa22eadb766e738f81d66.zip |
Don't use implicit variables later (#21593).
git-svn-id: http://svn.redmine.org/redmine/trunk@15137 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 483f88704..ff2006437 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -883,13 +883,13 @@ module ApplicationHelper def parse_sections(text, project, obj, attr, only_path, options) return unless options[:edit_section_links] text.gsub!(HEADING_RE) do - heading = $1 + heading, level = $1, $2 @current_section += 1 if @current_section > 1 content_tag('div', link_to('', options[:edit_section_links].merge(:section => @current_section), :class => 'icon-only icon-edit'), - :class => "contextual heading-#{$2}", + :class => "contextual heading-#{level}", :title => l(:button_edit_section), :id => "section-#{@current_section}") + heading.html_safe else |