svnno****@sourc*****
svnno****@sourc*****
2009年 2月 23日 (月) 15:46:55 JST
Revision: 1030 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1030 Author: tach Date: 2009-02-23 15:46:55 +0900 (Mon, 23 Feb 2009) Log Message: ----------- Print comments on the page of submission preview for Admin Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/plugins/Submit/submit.pl -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2009-02-23 06:26:14 UTC (rev 1029) +++ slashjp/trunk/debian/changelog 2009-02-23 06:46:55 UTC (rev 1030) @@ -16,8 +16,9 @@ * Add getJournalByDiscussion() and createJournalUrl() on plugins/Journal/Journal.pm * Fix to return with uid on getJournalByTime() on plugins/Journal/Journal.pm + * Print comments on the page of submission preview for Admin - -- Taku YASUI <tach****@osdn*****> Mon, 23 Feb 2009 06:25:30 +0000 + -- Taku YASUI <tach****@osdn*****> Mon, 23 Feb 2009 06:45:47 +0000 slash (2.5.0.233-4) unstable; urgency=low Modified: slashjp/trunk/plugins/Submit/submit.pl =================================================================== --- slashjp/trunk/plugins/Submit/submit.pl 2009-02-23 06:26:14 UTC (rev 1029) +++ slashjp/trunk/plugins/Submit/submit.pl 2009-02-23 06:46:55 UTC (rev 1030) @@ -311,6 +311,17 @@ note_options => getSubmissionSelections($constants), subnotes_ref => $subnotes_ref, }); + + if ($constants->{plugin}{Admin} && $constants->{plugin}{FireHose}) { + my $admin_reader = getObject("Slash::Admin"); + my $fh_reader = getObject("Slash::FireHose"); + my $fhid = $admin_reader->getFireHoseIdBySubid($sub->{subid}); + if ($fhid && (my $fh_item = $fh_reader->getFireHose($fhid))) { + if ($fh_item->{discussion}) { + printComments($reader->getDiscussion($fh_item->{discussion}) ); + } + } + } } #################################################################