Yaron Koren has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/187950

Change subject: Another CargoFieldDescription fix, for #cargo_display_map
......................................................................

Another CargoFieldDescription fix, for #cargo_display_map

Change-Id: I15a528a719568d4d18a0ac2b49e87264699ba17d
---
M parserfunctions/CargoDisplayMap.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cargo 
refs/changes/50/187950/1

diff --git a/parserfunctions/CargoDisplayMap.php 
b/parserfunctions/CargoDisplayMap.php
index c5a86f4..675265b 100644
--- a/parserfunctions/CargoDisplayMap.php
+++ b/parserfunctions/CargoDisplayMap.php
@@ -73,7 +73,9 @@
                list ( $lat, $lon ) = CargoStore::parseCoordinatesString( 
$pointStr );
                $valuesTable = array( array( 'Coords  lat' => $lat, 'Coords  
lon' => $lon ) );
                $formattedValuesTable = $valuesTable;
-               $fieldDescriptions = array( 'Coords' => array( 'type' => 
'Coordinates' ) );
+               $coordsDesc = new CargoFieldDescription();
+               $coordsDesc->mType = 'Coordinates';
+               $fieldDescriptions = array( 'Coords' => $coordsDesc );
                $displayParams = array();
                if ( $heightStr != null ) {
                        $displayParams['height'] = $heightStr;

-- 
To view, visit https://gerrit.wikimedia.org/r/187950
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I15a528a719568d4d18a0ac2b49e87264699ba17d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to