Index: trunk/extensions/Maps/ParserHooks/Maps_Geodistance.php |
— | — | @@ -103,6 +103,8 @@ |
104 | 104 | * @return string |
105 | 105 | */ |
106 | 106 | public function render( array $parameters ) { |
| 107 | + global $wgLang; |
| 108 | + |
107 | 109 | $canGeocode = MapsMapper::geocoderIsAvailable(); |
108 | 110 | |
109 | 111 | if ( $canGeocode ) { |
Index: trunk/extensions/Maps/Includes/Maps_Geocoders.php |
— | — | @@ -170,7 +170,9 @@ |
171 | 171 | $coordinates = $geocoder->geocode( str_replace( ',', '', $address ) ); |
172 | 172 | } |
173 | 173 | |
174 | | - self::cacheWrite( $address, $coordinates ); |
| 174 | + if ( $coordinates !== false ) { |
| 175 | + self::cacheWrite( $address, $coordinates ); |
| 176 | + } |
175 | 177 | |
176 | 178 | return $coordinates; |
177 | 179 | } |