[Slashdotjp-dev 1158] [685] add "select_disabled" value at constants.reasons values

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 5日 (土) 21:48:04 JST


Revision: 685
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=685
Author:   tach
Date:     2008-07-05 21:48:04 +0900 (Sat, 05 Jul 2008)

Log Message:
-----------
add "select_disabled" value****@const***** values

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/DB/MySQL/MySQL.pm


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/DB/MySQL/MySQL.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/DB/MySQL/MySQL.pm	2008-07-05 12:32:18 UTC (rev 684)
+++ slashjp/branches/2.5.0.192/Slash/DB/MySQL/MySQL.pm	2008-07-05 12:48:04 UTC (rev 685)
@@ -8068,6 +8068,9 @@
 		$conf{reasons} = $self->sqlSelectAllHashref(
 			"id", "*", "modreasons"
 		);
+		foreach my $d (split(/,/, $conf{modreasons_select_disabled} || '')) {
+			$conf{reasons}{int($d)}{select_disabled} = 1;
+		}
 	}
 
 	$conf{rootdir}		||= "//$conf{basedomain}";


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