Index: trunk/phase3/includes/User.php |
— | — | @@ -1138,6 +1138,8 @@ |
1139 | 1139 | * @see $wgAutopromoteOnce |
1140 | 1140 | */ |
1141 | 1141 | public function addAutopromoteOnceGroups( $event ) { |
| 1142 | + global $wgAutopromoteOnceLogInRC; |
| 1143 | + |
1142 | 1144 | $toPromote = array(); |
1143 | 1145 | if ( $this->getId() ) { |
1144 | 1146 | $toPromote = Autopromote::getAutopromoteOnceGroups( $this, $event ); |
— | — | @@ -1148,7 +1150,7 @@ |
1149 | 1151 | } |
1150 | 1152 | $newGroups = array_merge( $oldGroups, $toPromote ); // all groups |
1151 | 1153 | |
1152 | | - $log = new LogPage( 'rights', false /* not in RC */ ); |
| 1154 | + $log = new LogPage( 'rights', $wgAutopromoteOnceLogInRC /* in RC? */ ); |
1153 | 1155 | $log->addEntry( 'autopromote', |
1154 | 1156 | $this->getUserPage(), |
1155 | 1157 | '', // no comment |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -3566,6 +3566,12 @@ |
3567 | 3567 | 'onView' => array() |
3568 | 3568 | ); |
3569 | 3569 | |
| 3570 | +/* |
| 3571 | + * Put user rights log entries for autopromotion in recent changes? |
| 3572 | + * @since 1.18 |
| 3573 | + */ |
| 3574 | +$wgAutopromoteOnceLogInRC = true; |
| 3575 | + |
3570 | 3576 | /** |
3571 | 3577 | * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who |
3572 | 3578 | * can assign which groups at Special:Userrights. Example configuration: |