MaxSem has uploaded a new change for review.

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


Change subject: Bug 46181: Coordinate value in dec format does not work on 
de,da,is
......................................................................

Bug 46181: Coordinate value in dec format does not work on de,da,is

Change-Id: I99de46fce2d6d0f23a36c3e2bfbdc4b9ecb86b4f
---
M GeoData.body.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GeoData 
refs/changes/87/59087/1

diff --git a/GeoData.body.php b/GeoData.body.php
index f5c1fb2..5df0827 100644
--- a/GeoData.body.php
+++ b/GeoData.body.php
@@ -111,7 +111,9 @@
                                        return false;
                                }
                        }
-                       $part = $wgContLang->parseFormattedNumber( $part );
+                       if ( !is_numeric( $part ) ) {
+                               $part = $wgContLang->parseFormattedNumber( 
$part );
+                       }
                        $min = $i == 0 ? $coordInfo['min'] : 0;
                        $max = $i == 0 ? $coordInfo['max'] : 59.999999;
                        if ( !is_numeric( $part )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I99de46fce2d6d0f23a36c3e2bfbdc4b9ecb86b4f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GeoData
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>

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

Reply via email to