svnno****@sourc*****
svnno****@sourc*****
2008年 6月 27日 (金) 16:55:41 JST
Revision: 679 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=679 Author: tach Date: 2008-06-27 16:55:41 +0900 (Fri, 27 Jun 2008) Log Message: ----------- * upside down next_prev issue for journal * use Hash instead Array at getJournalByTime() Modified Paths: -------------- slashjp/branches/2.5.0.192/plugins/Journal/Journal.pm slashjp/branches/2.5.0.192/plugins/Journal/journal.pl -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/plugins/Journal/Journal.pm =================================================================== --- slashjp/branches/2.5.0.192/plugins/Journal/Journal.pm 2008-06-27 07:05:07 UTC (rev 678) +++ slashjp/branches/2.5.0.192/plugins/Journal/Journal.pm 2008-06-27 07:55:41 UTC (rev 679) @@ -719,7 +719,7 @@ $where .= " AND uid=$uid"; } - my $returnable = $self->sqlSelectArrayRef( + my $returnable = $self->sqlSelectHashref( 'date, article, description, id, posttype, tid, discussion', 'journals JOIN journals_text USING (id)', "date $sign '$journal->[0]' Modified: slashjp/branches/2.5.0.192/plugins/Journal/journal.pl =================================================================== --- slashjp/branches/2.5.0.192/plugins/Journal/journal.pl 2008-06-27 07:05:07 UTC (rev 678) +++ slashjp/branches/2.5.0.192/plugins/Journal/journal.pl 2008-06-27 07:55:41 UTC (rev 679) @@ -519,8 +519,8 @@ $commentcount = $article->[6] ? $discussion->{commentcount} : 0; - $next = $journal_reader->getJournalByTime('>', $article, { uid => $uid }); - $prev = $journal_reader->getJournalByTime('<', $article, { uid => $uid }); + $prev = $journal_reader->getJournalByTime('>', $article, { uid => $uid }); + $next = $journal_reader->getJournalByTime('<', $article, { uid => $uid }); } else { $commentcount = $article->[6] ? $journal_reader->getDiscussion($article->[6], 'commentcount')