[Hiki-cvs 1534] [1072] use @request instead of @cgi

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 9月 10日 (木) 23:02:48 JST


Revision: 1072
          http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=1072
Author:   okkez
Date:     2009-09-10 23:02:48 +0900 (Thu, 10 Sep 2009)

Log Message:
-----------
use @request instead of @cgi

Modified Paths:
--------------
    hiki/branches/rack/misc/plugin/incremental_search.rb

Modified: hiki/branches/rack/misc/plugin/incremental_search.rb
===================================================================
--- hiki/branches/rack/misc/plugin/incremental_search.rb	2009-09-10 14:02:46 UTC (rev 1071)
+++ hiki/branches/rack/misc/plugin/incremental_search.rb	2009-09-10 14:02:48 UTC (rev 1072)
@@ -17,8 +17,8 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 def search
-  as = Hiki::AjaxSearch.new( @cgi, @db, @conf )
-  @cgi.params['key'] ? as.search : as.form
+  as = Hiki::AjaxSearch.new(@request, @db, @conf)
+  @request.params['key'] ? as.search : as.form
 end
 
 module Hiki
@@ -76,7 +76,7 @@
     end
 
     def search
-      word = utf8_to_euc( @cgi.params['key'] )
+      word = utf8_to_euc(@request.params['key'])
       r = ""
       unless word.empty? then
         total, l =****@db*****( word )




Hiki-cvs メーリングリストの案内
Back to archive index