[Slashdotjp-dev 1016] [543] Fix: add "articles" dir when the story does not join any sections

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 3月 10日 (月) 16:01:45 JST


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

Log Message:
-----------
Fix: add "articles" dir when the story does not join any sections

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 06:41:08 UTC (rev 542)
+++ slashjp/branches/2.5.0.192/Slash/XML/RSS/RSS.pm	2008-03-10 07:01:45 UTC (rev 543)
@@ -425,6 +425,7 @@
 				$reader->getSkin($story->{primaryskid})->{rootdir},
 				$channel->{'link'}
 			);
+			$dir .= "/articles" if ($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