Yaron Koren has submitted this change and it was merged.

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(-)

Approvals:
  Yaron Koren: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: I15a528a719568d4d18a0ac2b49e87264699ba17d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>

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

Reply via email to