[Slashdotjp-dev 1038] [565] Fix variable name for new Comments.pm

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2008年 4月 3日 (木) 20:59:13 JST


Revision: 565
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=565
Author:   tach
Date:     2008-04-03 20:59:12 +0900 (Thu, 03 Apr 2008)

Log Message:
-----------
Fix variable name for new Comments.pm

Modified Paths:
--------------
    slashjp/trunk/Slash/Utility/Comments/Comments.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/Utility/Comments/Comments.pm
===================================================================
--- slashjp/trunk/Slash/Utility/Comments/Comments.pm	2008-04-03 07:25:31 UTC (rev 564)
+++ slashjp/trunk/Slash/Utility/Comments/Comments.pm	2008-04-03 11:59:12 UTC (rev 565)
@@ -1397,10 +1397,10 @@
 		$comm->{posttype} || PLAINTEXT
 	);
 
-	if ($constants->{anonymous_comment_interval} && ($user->{is_anon} || $form->{postanon})) {
+	if ($constants->{anonymous_comment_interval} && ($user->{is_anon} || $comm->{postanon})) {
 		my $ipid = getCurrentUser('ipid');
-		my $ipid_count = $slashdb->sqlSelect('count(*)', 'comments',
-			"sid='$form->{sid}'
+		my $ipid_count = $reader->sqlSelect('count(*)', 'comments',
+			"sid='$comm->{sid}'
 			AND uid=1
 			AND date > SUBDATE(NOW(), INTERVAL $constants->{anonymous_comment_interval} MINUTE)
 			AND ipid='$ipid'");

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2008-04-03 07:25:31 UTC (rev 564)
+++ slashjp/trunk/debian/changelog	2008-04-03 11:59:12 UTC (rev 565)
@@ -1,8 +1,9 @@
 slash (2.5.0.198-1) unstable; urgency=low
 
   * New upstream CVS release
+  * Fix variable name for new Slash/Utility/Comments/Comments.pm
 
- -- Taku YASUI <tach****@osdn*****>  Tue, 01 Apr 2008 13:02:56 +0900
+ -- Taku YASUI <tach****@osdn*****>  Thu, 03 Apr 2008 20:58:51 +0900
 
 slash (2.5.0.196-1) unstable; urgency=low
 


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る