Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -168,6 +168,10 @@ |
169 | 169 | wfLoadExtensionMessages( 'Maps' ); |
170 | 170 | } |
171 | 171 | |
| 172 | + if ( is_null( $wgExtraNamespaces ) ) { |
| 173 | + $wgExtraNamespaces = array(); |
| 174 | + } |
| 175 | + |
172 | 176 | $wgExtraNamespaces += array( |
173 | 177 | Maps_NS_LAYER => 'Layer', |
174 | 178 | Maps_NS_LAYER_TALK => 'Layer talk' |