Skip to content

Commit f094471

Browse files
committed
Fix shadowing variable in ApplicationHelper#textilizable (#15667).
Patch by Ilya S. git-svn-id: https://svn.redmine.org/redmine/trunk@21991 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 969872f commit f094471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helpers/application_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,9 @@ def textilizable(*args)
876876
@current_section = 0 if options[:edit_section_links]
877877

878878
parse_sections(text, project, obj, attr, only_path, options)
879-
text = parse_non_pre_blocks(text, obj, macros, options) do |text|
879+
text = parse_non_pre_blocks(text, obj, macros, options) do |txt|
880880
[:parse_inline_attachments, :parse_hires_images, :parse_wiki_links, :parse_redmine_links].each do |method_name|
881-
send method_name, text, project, obj, attr, only_path, options
881+
send method_name, txt, project, obj, attr, only_path, options
882882
end
883883
end
884884
parse_headings(text, project, obj, attr, only_path, options)

0 commit comments

Comments
 (0)