Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -1,6 +1,10 @@ |
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.10 - 17 January 2009 |
| 6 | + Fixed "You are not allowed to read this setting" error for all settings on |
| 7 | + Special:Extensions when $wgConfigureEditableSettings is an non-empty array. |
| 8 | + |
5 | 9 | 0.11.9 - 16 January 2009 |
6 | 10 | Added support for $wgNewPasswordExpiry. |
7 | 11 | |
Index: trunk/extensions/Configure/Configure.settings.php |
— | — | @@ -210,8 +210,17 @@ |
211 | 211 | $notEditable = array_merge( $notEditable, $wgConf->getUneditableSettings() ); |
212 | 212 | |
213 | 213 | if ( !count( $wgConfigureNotEditableSettings ) && count( $wgConfigureEditableSettings ) ) { |
214 | | - $wgConfigureNotEditableSettings = array_diff( array_keys( $this->getAllSettings() ), $wgConfigureEditableSettings ); |
| 214 | + // Only disallow core settings, not extensions settings! |
| 215 | + $coreSettings = array(); |
| 216 | + foreach( $this->settings as $section ) { |
| 217 | + foreach( $section as $group ) { |
| 218 | + foreach( $group as $var => $type ) { |
| 219 | + $coreSettings[] = $var; |
| 220 | + } |
| 221 | + } |
215 | 222 | } |
| 223 | + $wgConfigureNotEditableSettings = array_diff( $coreSettings, $wgConfigureEditableSettings ); |
| 224 | + } |
216 | 225 | |
217 | 226 | $notEditable = array_merge( $notEditable, |
218 | 227 | $wgConfigureNotEditableSettings ); |
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.9', |
| 21 | + 'version' => '0.11.10', |
22 | 22 | ); |
23 | 23 | |
24 | 24 | # Configuration part |