Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -2,7 +2,9 @@ |
3 | 3 | through translatewiki.net and are not listed here. |
4 | 4 | |
5 | 5 | 0.15.23 - 2 May 2010 |
6 | | - Added $wgLocalStylePath and $wgVectorShowVariantName. |
| 6 | + * (bug 23379) Settings based on radio button now longer throw errors if |
| 7 | + nothing is selected |
| 8 | + * Added $wgLocalStylePath and $wgVectorShowVariantName. |
7 | 9 | |
8 | 10 | 0.15.22 - 25 April 2010 |
9 | 11 | Added $wgAllowImageTag and $wgLogAutocreatedAccounts. |
Index: trunk/extensions/Configure/specials/ConfigurationPage.php |
— | — | @@ -715,7 +715,7 @@ |
716 | 716 | default: |
717 | 717 | if ( is_array( $type ) ) { |
718 | 718 | $val = $wgRequest->getVal( 'wp' . $name ); |
719 | | - if ( !array_key_exists( $val, $type ) ) { |
| 719 | + if ( !array_key_exists( $val, $type ) && $val !== null ) { |
720 | 720 | $perm = implode( ', ', $type ); |
721 | 721 | throw new MWException( "Value for \$$name setting is not in permitted (given: $val, permitted: $perm)" ); |
722 | 722 | } |