Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -3,6 +3,8 @@ |
4 | 4 | |
5 | 5 | 0.11.7 - 10 January 2009 |
6 | 6 | * Added support for Redirect |
| 7 | + * Fixed Special:Extensions: was sometimes throwing an error when saving the |
| 8 | + configuration |
7 | 9 | |
8 | 10 | 0.11.6 - 7 January 2009 |
9 | 11 | * Added support for OpenID, NewUserMessage and ReplaceText extensions. |
Index: trunk/extensions/Configure/Configure.settings.php |
— | — | @@ -95,10 +95,12 @@ |
96 | 96 | $ret = $this->settings; |
97 | 97 | } |
98 | 98 | if( ( $this->types & CONF_SETTINGS_EXT ) == CONF_SETTINGS_EXT ) { |
99 | | - static $extArr; |
100 | | - if( !isset($extArr) ) { |
| 99 | + static $extArr = null; |
| 100 | + if( is_null( $extArr ) ) { |
101 | 101 | $extArr = array(); |
102 | 102 | foreach( $this->getAllExtensionsObjects() as $ext ) { |
| 103 | + if( !$ext->isInstalled() ) |
| 104 | + continue; |
103 | 105 | $extSettings = $ext->getSettings(); |
104 | 106 | if( $ext->useVariable() ) |
105 | 107 | $extSettings[$ext->getVariable()] = 'bool'; |
— | — | @@ -244,7 +246,7 @@ |
245 | 247 | } |
246 | 248 | if ( ( $this->types & CONF_SETTINGS_EXT ) == CONF_SETTINGS_EXT ) { |
247 | 249 | foreach ( $this->getAllExtensionsObjects() as $ext ) { |
248 | | - $list += $ext->getArrayDefs(); |
| 250 | + $list += $ext->getArrayDefs(); |
249 | 251 | } |
250 | 252 | } |
251 | 253 | return $this->cache['array'] = $list; |