r64843 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64842‎ | r64843 | r64844 >
Date:00:11, 10 April 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Added format alias for #geocode and reset default geo service
Modified paths:
  • /trunk/extensions/Maps/Maps_Settings.php (modified) (history)
  • /trunk/extensions/Maps/ParserFunctions/Geocode/Maps_GeocodeFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/ParserFunctions/Geocode/Maps_GeocodeFunctions.php
@@ -116,6 +116,9 @@
117117 'criteria' => array(
118118 'in_array' => $egMapsAvailableCoordNotations
119119 ),
 120+ 'aliases' => array(
 121+ 'format'
 122+ ),
120123 'default' => $egMapsCoordinateNotation
121124 ),
122125 'allowcoordinates' => array(
Index: trunk/extensions/Maps/Maps_Settings.php
@@ -47,7 +47,7 @@
4848
4949 # String. The default geocoding service, which will be used when no service is provided by the user.
5050 # This service needs to be enabled, if not, the first one from the available services will be taken.
51 -$egMapsDefaultGeoService = 'google';
 51+$egMapsDefaultGeoService = 'geonames';
5252
5353 $egMapsUserGeoOverrides = true;
5454

Status & tagging log