svnno****@sourc*****
svnno****@sourc*****
2009年 8月 30日 (日) 23:46:50 JST
Revision: 1030 http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=1030 Author: okkez Date: 2009-08-30 23:46:50 +0900 (Sun, 30 Aug 2009) Log Message: ----------- fix template plugin Modified Paths: -------------- hiki/branches/rack/misc/plugin/template.rb Modified: hiki/branches/rack/misc/plugin/template.rb =================================================================== --- hiki/branches/rack/misc/plugin/template.rb 2009-08-30 14:46:47 UTC (rev 1029) +++ hiki/branches/rack/misc/plugin/template.rb 2009-08-30 14:46:50 UTC (rev 1030) @@ -38,8 +38,8 @@ end def load_template - tmpl_name =****@cgi*****['template'][0] - page =****@cgi*****['p'][0] ? @cgi.params['p'][0] : 'FrontPage' + tmpl_name =****@cgi*****['template'] + page =****@cgi*****['p'] ? @cgi.params['p'] : 'FrontPage' @text = if tmpl_name @db.load(tmpl_name) @@ -61,9 +61,9 @@ def saveconf_template if @mode == 'saveconf' then - @conf['template.default'] = @params['template.default'][0] && @params['template.default'][0].empty? ? nil : @params['template.default'][0] - @conf['template.keyword'] = @params['template.keyword'][0].empty? ? nil : @params['template.keyword'][0] - @conf['template.autoinsert'] = @params['template.autoinsert'][0] ? true : false + @conf['template.default'] = @params['template.default'] && @params['template.default'].empty? ? nil : @params['template.default'] + @conf['template.keyword'] = @params['template.keyword'].empty? ? nil : @params['template.keyword'] + @conf['template.autoinsert'] = @params['template.autoinsert'] ? true : false end end