svnno****@sourc*****
svnno****@sourc*****
2009年 9月 10日 (木) 23:02:46 JST
Revision: 1071 http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=1071 Author: okkez Date: 2009-09-10 23:02:46 +0900 (Thu, 10 Sep 2009) Log Message: ----------- use @request instead of @cgi Modified Paths: -------------- hiki/branches/rack/misc/plugin/history.rb Modified: hiki/branches/rack/misc/plugin/history.rb =================================================================== --- hiki/branches/rack/misc/plugin/history.rb 2009-09-10 14:02:43 UTC (rev 1070) +++ hiki/branches/rack/misc/plugin/history.rb 2009-09-10 14:02:46 UTC (rev 1071) @@ -54,17 +54,17 @@ =end def history - h = Hiki::History.new(@cgi, @db, @conf) + h = Hiki::History.new(@request, @db, @conf) h.history end def history_src - h = Hiki::History.new(@cgi, @db, @conf) + h = Hiki::History.new(@request, @db, @conf) h.history_src end def history_diff - h = Hiki::History.new(@cgi, @db, @conf) + h = Hiki::History.new(@request, @db, @conf) h.history_diff end @@ -97,7 +97,7 @@ parser =****@conf*****( @conf ) tokens = parser.parse( s ) formatter =****@conf*****( tokens, @db, @plugin, @conf ) - @page = Page.new( @cgi, @conf ) + @page = Page.new( @request, @conf ) data = get_common_data( @db, @plugin, @conf ) @plugin.hiki_menu(data, @cmd) pg_title =****@plugi*****_name(@p) @@ -210,7 +210,7 @@ # Output source at an arbitrary revision def history_src # make command string - r =****@cgi*****['r'] || '1' + r =****@reque*****['r'] || '1' txt =****@conf*****_revision(@p, r) txt = "*** no source ***" if txt.empty? @@ -233,8 +233,8 @@ # Output diff between two arbitrary revisions def history_diff # make command string - r =****@cgi*****['r'] || '1' - r2 =****@cgi*****['r2'] + r =****@reque*****['r'] || '1' + r2 =****@reque*****['r2'] if r2.nil? || r2.to_i == 0 new =****@db*****(@p) old =****@conf*****_revision(@p, r)