Index: branches/Maps0.8/INSTALL |
— | — | @@ -1,4 +1,4 @@ |
2 | | -[[Maps 0.7.4]] |
| 2 | +[[Maps 0.8]] |
3 | 3 | |
4 | 4 | In order to use this version of Maps, you need to have Validator 0.3.6 installed. If you get a distribution |
5 | 5 | from this page, you don't need to bother this, since Validator comes bundled with every release, and will |
Index: branches/Maps0.8/Maps.php |
— | — | @@ -26,6 +26,10 @@ |
27 | 27 | die( 'Not an entry point.' ); |
28 | 28 | } |
29 | 29 | |
| 30 | +if ( version_compare( $wgVersion, '1.17', '<' ) ) { |
| 31 | + die( '<b>Error:</b> This version of Maps requires MediaWiki 1.17 or above; use Maps 0.7.x for older versions.' ); |
| 32 | +} |
| 33 | + |
30 | 34 | // Include the Validator extension if that hasn't been done yet, since it's required for Maps to work. |
31 | 35 | if ( !defined( 'Validator_VERSION' ) ) { |
32 | 36 | @include_once( dirname( __FILE__ ) . '/../Validator/Validator.php' ); |
— | — | @@ -36,7 +40,7 @@ |
37 | 41 | die( '<b>Error:</b> You need to have <a href="http://www.mediawiki.org/wiki/Extension:Validator">Validator</a> installed in order to use <a href="http://www.mediawiki.org/wiki/Extension:Maps">Maps</a>.<br />' ); |
38 | 42 | } |
39 | 43 | else { |
40 | | - define( 'Maps_VERSION', '0.7.4 alpha' ); |
| 44 | + define( 'Maps_VERSION', '0.8 alpha' ); |
41 | 45 | |
42 | 46 | // The different coordinate notations. |
43 | 47 | define( 'Maps_COORDS_FLOAT', 'float' ); |
— | — | @@ -44,10 +48,8 @@ |
45 | 49 | define( 'Maps_COORDS_DM', 'dm' ); |
46 | 50 | define( 'Maps_COORDS_DD', 'dd' ); |
47 | 51 | |
48 | | - $useExtensionPath = version_compare( $wgVersion, '1.16', '>=' ) && isset( $wgExtensionAssetsPath ) && $wgExtensionAssetsPath; |
49 | | - $egMapsScriptPath = ( $useExtensionPath ? $wgExtensionAssetsPath : $wgScriptPath . '/extensions' ) . '/Maps'; |
| 52 | + $egMapsScriptPath = $wgExtensionAssetsPath . '/Maps'; |
50 | 53 | $egMapsDir = dirname( __FILE__ ) . '/'; |
51 | | - unset( $useExtensionPath ); |
52 | 54 | |
53 | 55 | $egMapsStyleVersion = $wgStyleVersion . '-' . Maps_VERSION; |
54 | 56 | |
Index: branches/Maps0.8/Maps_Settings.php |
— | — | @@ -248,6 +248,10 @@ |
249 | 249 | # Google Geocoder services. |
250 | 250 | $egGoogleMapsKey = ''; # http://code.google.com/apis/maps/signup.html |
251 | 251 | |
| 252 | + # If your wiki is accessable via multiple urls, you'll need multiple keys. |
| 253 | + # Example: $egGoogleMapsKeys['http://yourdomain.tld/something'] = 'your key'; |
| 254 | + $egGoogleMapsKeys = array(); |
| 255 | + |
252 | 256 | # Integer. The default zoom of a map. This value will only be used when the |
253 | 257 | # user does not provide one. |
254 | 258 | $egMapsGoogleMapsZoom = 14; |
Index: branches/Maps0.8/RELEASE-NOTES |
— | — | @@ -7,9 +7,11 @@ |
8 | 8 | http://mapping.referata.com/wiki/Maps/Version_history#Maps_change_log |
9 | 9 | |
10 | 10 | |
11 | | -=== Maps 0.7.4 === |
| 11 | +=== Maps 0.8 === |
12 | 12 | (2011-0x-xx) |
13 | 13 | |
| 14 | +* Removed compatibility with pre MediaWiki 1.17, in order to make full use of the new features. |
| 15 | + |
14 | 16 | * Added support for the auto-documentation features for parser hooks introduced in Validator 0.4.3. |
15 | 17 | |
16 | 18 | * Improved KML formatter. |