[Slashdotjp-dev 1195] [722] Fix journals URL cont.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 25日 (金) 13:16:00 JST


Revision: 722
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=722
Author:   tach
Date:     2008-07-25 13:16:00 +0900 (Fri, 25 Jul 2008)

Log Message:
-----------
Fix journals URL cont.

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-07-23 12:16:26 UTC (rev 721)
+++ slashjp/branches/2.5.0.192/Slash/Apache/User/User.pm	2008-07-25 04:16:00 UTC (rev 722)
@@ -598,9 +598,9 @@
 		my @args = ($query);
 		$word =~ s!/+$!!;
 		$word =~ s{/}{_}g;
-		if ($word =~ /^(recent|friends|posters)/) {
-			$word = "top_$word";
-		} elsif ($word eq "rss") {
+		$word =~ s/^top(recent|friends|posters)(.*)$/top_$1$2/;
+		$word =~ s/^topcount(.*)$/top_posters$1/;
+		if ($word eq "rss") {
 			$word = "top_recent_rss";
 		} elsif ($word eq "") {
 			$word = "top";


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