svnno****@sourc*****
svnno****@sourc*****
2009年 3月 31日 (火) 19:29:46 JST
Revision: 1090 http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1090 Author: tach Date: 2009-03-31 19:29:46 +0900 (Tue, 31 Mar 2009) Log Message: ----------- Set only otherLinks to relatedtext when "relatedtext_only_otherlinks" is set Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/plugins/Admin/Admin.pm -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2009-03-27 09:45:08 UTC (rev 1089) +++ slashjp/trunk/debian/changelog 2009-03-31 10:29:46 UTC (rev 1090) @@ -17,8 +17,9 @@ * Smart URL for authors - /authors/ => /authors.pl - /authors/journal/ => /journal.pl?op=authorsview + * Set only otherLinks to relatedtext when "relatedtext_only_otherlinks" is set - -- Taku YASUI <tach****@osdn*****> Thu, 26 Mar 2009 09:08:27 +0000 + -- Taku YASUI <tach****@osdn*****> Tue, 31 Mar 2009 10:28:57 +0000 slash (2.5.0.233-7) unstable; urgency=low Modified: slashjp/trunk/plugins/Admin/Admin.pm =================================================================== --- slashjp/trunk/plugins/Admin/Admin.pm 2009-03-27 09:45:08 UTC (rev 1089) +++ slashjp/trunk/plugins/Admin/Admin.pm 2009-03-31 10:29:46 UTC (rev 1090) @@ -287,7 +287,9 @@ ################################################################## sub relatedLinks { my($self, $story_content, $tids, $nick, $uid) = @_; - my $relatedtext = $self->getRelated($story_content, $tids); + my $relatedtext = ''; + $relatedtext .= $self->getRelated($story_content, $tids) + if ($constants->{relatedtext_only_otherlinks}); $relatedtext .= $self->otherLinks($nick, $tids, $uid) if $nick; # If getRelated and otherLinks seem to be putting <li>