From: <tad...@us...> - 2009-12-04 12:38:42
|
Revision: 3552 http://tdiary.svn.sourceforge.net/tdiary/?rev=3552&view=rev Author: tadatadashi Date: 2009-12-04 12:38:33 +0000 (Fri, 04 Dec 2009) Log Message: ----------- fixed bug of no saved referer under new navi_user plugin. Modified Paths: -------------- trunk/core/ChangeLog trunk/core/plugin/00default.rb Modified: trunk/core/ChangeLog =================================================================== --- trunk/core/ChangeLog 2009-11-24 12:24:40 UTC (rev 3551) +++ trunk/core/ChangeLog 2009-12-04 12:38:33 UTC (rev 3552) @@ -1,3 +1,6 @@ +2009-12-04 TADA Tadashi <t...@td...> + * plugin/00default.rb: fixed bug of no saved referer under new navi_user plugin. + 2009-11-24 SHIBATA Hiroshi <shi...@gm...> * tdiary.rb, plugin/00default.rb, plugin/{ja,en,zh}/00default.rb: change logger implementation. Modified: trunk/core/plugin/00default.rb =================================================================== --- trunk/core/plugin/00default.rb 2009-11-24 12:24:40 UTC (rev 3551) +++ trunk/core/plugin/00default.rb 2009-12-04 12:38:33 UTC (rev 3552) @@ -238,10 +238,11 @@ yms.unshift(nil).push(nil) yms[yms.index(this_month) - 1, 3].each do |ym| next unless ym - now = @cgi.params['date'] - @cgi.params['date'] = [ym] - m = TDiaryMonthWithoutFilter.new(@cgi, '', @conf) - @cgi.params['date'] = now + now = @cgi.params['date'] // backup + cgi = @cgi.clone + cgi.params['date'] = [ym] + m = TDiaryMonthWithoutFilter.new(cgi, '', @conf) + @cgi.params['date'] = now // restore m.diaries.delete_if {|date,diary| !diary.visible?} days += m.diaries.keys.sort end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |