summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-04-10 02:48:29 +0000
committerGo MAEDA <maeda@farend.jp>2024-04-10 02:48:29 +0000
commit1c17ae733dfa0216fb6427722d2a479413369e87 (patch)
treeba16bb2fd30c48dd85511c4d9cba14b9a8ec79b0 /lib
parent3f7650f4c0222dbc10f09d4f6977fbd5ea89203d (diff)
downloadredmine-1c17ae733dfa0216fb6427722d2a479413369e87.tar.gz
redmine-1c17ae733dfa0216fb6427722d2a479413369e87.zip
Fix initial_page_content method to avoid referencing @page instance variable in wiki formatting helpers (#40513).
Patch by Takuya Kodama (@otegami). git-svn-id: https://svn.redmine.org/redmine/trunk@22781 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/wiki_formatting/common_mark/helper.rb2
-rw-r--r--lib/redmine/wiki_formatting/markdown/helper.rb2
-rw-r--r--lib/redmine/wiki_formatting/textile/helper.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/redmine/wiki_formatting/common_mark/helper.rb b/lib/redmine/wiki_formatting/common_mark/helper.rb
index 417ffab22..f75f1fc0e 100644
--- a/lib/redmine/wiki_formatting/common_mark/helper.rb
+++ b/lib/redmine/wiki_formatting/common_mark/helper.rb
@@ -33,7 +33,7 @@ module Redmine
end
def initial_page_content(page)
- "# #{@page.pretty_title}"
+ "# #{page.pretty_title}"
end
def heads_for_wiki_formatter
diff --git a/lib/redmine/wiki_formatting/markdown/helper.rb b/lib/redmine/wiki_formatting/markdown/helper.rb
index a5a836184..e77547412 100644
--- a/lib/redmine/wiki_formatting/markdown/helper.rb
+++ b/lib/redmine/wiki_formatting/markdown/helper.rb
@@ -33,7 +33,7 @@ module Redmine
end
def initial_page_content(page)
- "# #{@page.pretty_title}"
+ "# #{page.pretty_title}"
end
def heads_for_wiki_formatter
diff --git a/lib/redmine/wiki_formatting/textile/helper.rb b/lib/redmine/wiki_formatting/textile/helper.rb
index 4fa3bacb6..ad6e53992 100644
--- a/lib/redmine/wiki_formatting/textile/helper.rb
+++ b/lib/redmine/wiki_formatting/textile/helper.rb
@@ -32,7 +32,7 @@ module Redmine
end
def initial_page_content(page)
- "h1. #{@page.pretty_title}"
+ "h1. #{page.pretty_title}"
end
def heads_for_wiki_formatter