Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_ParamOLLayers.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | |
35 | 35 | $unpacked = array(); |
36 | 36 | |
37 | | - foreach ( $parameter->value as $layerOrGroup ) { |
| 37 | + foreach ( $parameter->getValue() as $layerOrGroup ) { |
38 | 38 | if ( array_key_exists( $layerOrGroup, $egMapsOLLayerGroups ) ) { |
39 | 39 | $unpacked = array_merge( $unpacked, $egMapsOLLayerGroups[$layerOrGroup] ); |
40 | 40 | } |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
46 | | - $parameter->value = $unpacked; |
| 46 | + $parameter->setValue( $unpacked ); |
47 | 47 | } |
48 | 48 | |
49 | 49 | } |
\ No newline at end of file |
Index: trunk/extensions/Maps/includes/services/OpenLayers/Maps_OpenLayers.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | * @since 0.7 |
43 | 43 | */ |
44 | 44 | public function addParameterInfo( array &$params ) { |
45 | | - global $egMapsOLLayers, $egMapsOLControls, $egMapsOpenLayersZoom; |
| 45 | + global $egMapsOLLayers, $egMapsOLControls; |
46 | 46 | |
47 | 47 | $params['zoom']->addCriteria( new CriterionInRange( 0, 19 ) ); |
48 | 48 | $params['zoom']->setDefault( self::getDefaultZoom() ); |