[Slashdotjp-dev 1384] [915] use "Anonymous Coward" as name for submission when the name is blank

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2009年 1月 6日 (火) 14:19:41 JST


Revision: 915
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=915
Author:   tach
Date:     2009-01-06 14:19:40 +0900 (Tue, 06 Jan 2009)

Log Message:
-----------
use "Anonymous Coward" as name for submission when the name is blank

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/plugins/Submit/submit.pl


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/plugins/Submit/submit.pl
===================================================================
--- slashjp/branches/2.5.0.192/plugins/Submit/submit.pl	2009-01-05 06:43:48 UTC (rev 914)
+++ slashjp/branches/2.5.0.192/plugins/Submit/submit.pl	2009-01-06 05:19:40 UTC (rev 915)
@@ -624,7 +624,7 @@
 	my $submission = {
 		email		=> $form->{email},
 		uid		=> $uid,
-		name		=> $form->{name},
+		name		=> $form->{name} || "Anonymous Coward",
 		story		=> $form->{story},
 		subj		=> $form->{subj},
 		tid		=> $form->{tid},


Slashdotjp-dev メーリングリストの案内
Zurück zum Archiv-Index