Index: trunk/extensions/Configure/Configure.api.php |
— | — | @@ -265,7 +265,7 @@ |
266 | 266 | case 'promotion-conds': |
267 | 267 | $opToName = array_flip( array( 'or' => '|', 'and' => '&', 'xor' => '^', 'not' => '!' ) ); |
268 | 268 | $condsName = array( 1 => 'editcount', 2 => 'age', 3 => 'emailconfirmed', |
269 | | - 4 => 'in-groups', 5 => 'is-ip', 6 => 'ip-in-range' ); |
| 269 | + 4 => 'in-groups', 5 => 'is-ip', 6 => 'ip-in-range', 7 => 'age-from-first-edit' ); |
270 | 270 | $validOps = array_keys( $opToName ); |
271 | 271 | |
272 | 272 | $settingRet['values'] = array(); |
Index: trunk/extensions/Configure/Configure.page.php |
— | — | @@ -600,7 +600,8 @@ |
601 | 601 | case 'promotion-conds': |
602 | 602 | $options = array( 'or' => '|', 'and' => '&', 'xor' => '^', 'not' => '!' ); |
603 | 603 | $conds = array( APCOND_EDITCOUNT => 'int', APCOND_AGE => 'int', APCOND_EMAILCONFIRMED => 'bool', |
604 | | - APCOND_INGROUPS => 'array', APCOND_ISIP => 'text', APCOND_IPINRANGE => 'text' ); |
| 604 | + APCOND_INGROUPS => 'array', APCOND_ISIP => 'text', APCOND_IPINRANGE => 'text', |
| 605 | + APCOND_AGE_FROM_EDIT => 'int' ); |
605 | 606 | |
606 | 607 | if ( isset( $_REQUEST['wp' . $name . '-vals'] ) ) { |
607 | 608 | $groups = explode( "\n", trim( $wgRequest->getText( 'wp' . $name . '-vals' ) ) ); |
— | — | @@ -1319,7 +1320,8 @@ |
1320 | 1321 | public static function buildPromotionCondsSettingRow( $conf, $allowed, $group, $groupConds ){ |
1321 | 1322 | static $options = array( 'or' => '|', 'and' => '&', 'xor' => '^', 'not' => '!' ); |
1322 | 1323 | static $conds = array( APCOND_EDITCOUNT => 'int', APCOND_AGE => 'int', APCOND_EMAILCONFIRMED => 'bool', |
1323 | | - APCOND_INGROUPS => 'array', APCOND_ISIP => 'text', APCOND_IPINRANGE => 'text' ); |
| 1324 | + APCOND_INGROUPS => 'array', APCOND_ISIP => 'text', APCOND_IPINRANGE => 'text', |
| 1325 | + APCOND_AGE_FROM_EDIT => 'int' ); |
1324 | 1326 | |
1325 | 1327 | $row = '<div class="configure-biglist promotion-conds-element">'; |
1326 | 1328 | $row .= wfMsgHtml( 'configure-condition-operator' ) . ' '; |
Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -1,8 +1,11 @@ |
2 | 2 | This file lists changes on this extension. |
3 | 3 | Localisation updates are done on betawiki and aren't listed here. |
4 | 4 | |
| 5 | +0.11.8 - 14 January 2009 |
| 6 | + Added support for APCOND_AGE_FROM_EDIT condition of $wgAutopromote. |
| 7 | + |
5 | 8 | 0.11.7 - 10 January 2009 |
6 | | - * Added support for Redirect |
| 9 | + * Added support for Redirect extension |
7 | 10 | * Fixed Special:Extensions: was sometimes throwing an error when saving the |
8 | 11 | configuration |
9 | 12 | * (bug 16953) Fixed error on Special:Configure and Special:ViewConfig |
Index: trunk/extensions/Configure/Configure.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Configure', |
19 | 19 | 'description' => 'Allow authorised users to configure the wiki via a web-based interface', |
20 | 20 | 'descriptionmsg' => 'configure-desc', |
21 | | - 'version' => '0.11.7', |
| 21 | + 'version' => '0.11.8', |
22 | 22 | ); |
23 | 23 | |
24 | 24 | # Configuration part |
Index: trunk/extensions/Configure/Configure.i18n.php |
— | — | @@ -189,6 +189,7 @@ |
190 | 190 | 'configure-condition-name-4' => 'In groups', |
191 | 191 | 'configure-condition-name-5' => 'User\'s IP address', |
192 | 192 | 'configure-condition-name-6' => 'User\'s IP address in CIDR range', |
| 193 | + 'configure-condition-name-7' => 'Minimal age from first edit', |
193 | 194 | 'configure-autopromote-noconds' => 'No prerequisites', |
194 | 195 | |
195 | 196 | 'configure-condition-description-1' => 'Minimum edit count of $1', |
— | — | @@ -197,6 +198,7 @@ |
198 | 199 | 'configure-condition-description-4' => 'In all of the groups $1', |
199 | 200 | 'configure-condition-description-5' => 'User\'s IP address is $1', |
200 | 201 | 'configure-condition-description-6' => 'User\'s IP address in $1 range', |
| 202 | + 'configure-condition-description-7' => 'Minimum account age of $1 {{PLURAL:$1|second|seconds}} after the first edit', |
201 | 203 | |
202 | 204 | 'configure-boolop-description-and' => 'All conditions must be true', |
203 | 205 | 'configure-boolop-description-or' => 'At least one condition must be true', |