[Slashdotjp-dev 1018] [545] Minor fix: add "/articles" only when constants-> {rss_use_story_shtml} is true

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 10日 (月) 16:18:29 JST


Revision: 545
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=545
Author:   tach
Date:     2008-03-10 16:18:28 +0900 (Mon, 10 Mar 2008)

Log Message:
-----------
Minor fix: add "/articles" only when constants->{rss_use_story_shtml} is true

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-03-10 07:17:05 UTC (rev 544)
+++ slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-03-10 07:18:28 UTC (rev 545)
@@ -425,7 +425,7 @@
 				$reader->getSkin($story->{primaryskid})->{rootdir},
 				$channel->{'link'}
 			);
-			$dir .= "/articles" if ($story->{primaryskid} == $constants->{mainpage_skid});
+			$dir .= "/articles" if ($constants->{rss_use_story_shtml} && $story->{primaryskid} == $constants->{mainpage_skid});
 			$encoded_item->{'link'} = $constants->{rss_use_story_shtml} ? _tag_link("$dir/$story->{sid}.shtml") : _tag_link("$dir/article.pl?sid=$story->{sid}");
 			$edit = "$dir/$edit";
 			$action = "$dir/$action";


Slashdotjp-dev メーリングリストの案内
Back to archive index