[Slashdotjp-dev 1049] [576] Fix anonymous comment interval function

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2008年 4月 7日 (月) 14:09:04 JST


Revision: 576
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=576
Author:   tach
Date:     2008-04-07 14:09:04 +0900 (Mon, 07 Apr 2008)

Log Message:
-----------
Fix anonymous comment interval function

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


-------------- next part --------------
Modified: slashjp/trunk/Slash/Utility/Comments/Comments.pm
===================================================================
--- slashjp/trunk/Slash/Utility/Comments/Comments.pm	2008-04-07 03:21:05 UTC (rev 575)
+++ slashjp/trunk/Slash/Utility/Comments/Comments.pm	2008-04-07 05:09:04 UTC (rev 576)
@@ -1448,9 +1448,8 @@
 			AND date > SUBDATE(NOW(), INTERVAL $constants->{anonymous_comment_interval} MINUTE)
 			AND ipid='$ipid'");
 		if ($ipid_count > 0) {
-			header('Comments', $discussion->{section}) or return;
-			editComment(@_, getError('anonymous_comment_interval'));
-			return 0;
+			$$error_message = getError('anonymous_comment_interval');
+			return -1;
 		}
 	}
 


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