]> source.dussan.org Git - redmine.git/commitdiff
Fix initial_page_content method to avoid referencing @page instance variable in wiki...
authorGo MAEDA <maeda@farend.jp>
Wed, 10 Apr 2024 02:48:29 +0000 (02:48 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 10 Apr 2024 02:48:29 +0000 (02:48 +0000)
Patch by Takuya Kodama (@otegami).

git-svn-id: https://svn.redmine.org/redmine/trunk@22781 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/common_mark/helper.rb
lib/redmine/wiki_formatting/markdown/helper.rb
lib/redmine/wiki_formatting/textile/helper.rb

index 417ffab2293c0be53d4f61e55abfc255c18de0d3..f75f1fc0e70f8fb3069212bb2a433650078ca21a 100644 (file)
@@ -33,7 +33,7 @@ module Redmine
         end
 
         def initial_page_content(page)
-          "# #{@page.pretty_title}"
+          "# #{page.pretty_title}"
         end
 
         def heads_for_wiki_formatter
index a5a8361848322480082be4ded2339baaf2b2d20f..e775474126282f6cf89b359cf39bcfcc34933322 100644 (file)
@@ -33,7 +33,7 @@ module Redmine
         end
 
         def initial_page_content(page)
-          "# #{@page.pretty_title}"
+          "# #{page.pretty_title}"
         end
 
         def heads_for_wiki_formatter
index 4fa3bacb68db2a4b1833596f560b4f42248f0ebf..ad6e5399209a65d25f8173e72491f341ec42754e 100644 (file)
@@ -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