Index: trunk/extensions/Maps/Maps.php |
— | — | @@ -82,10 +82,16 @@ |
83 | 83 | global $egMapsDefaultService, $egMapsAvailableServices, $egMapsServices, $egMapsDefaultGeoService, $egMapsScriptPath; |
84 | 84 | global $egMapsDir, $egMapsAvailableFeatures, $egMapsUseMinJs, $egMapsJsExt, $egMapsStyleVersion; |
85 | 85 | |
86 | | - // Autoload the general classes |
| 86 | + // Autoload the general classes. |
87 | 87 | $wgAutoloadClasses['MapsCoordinateParser'] = $egMapsDir . 'Maps_CoordinateParser.php'; |
88 | 88 | $wgAutoloadClasses['MapsMapper'] = $egMapsDir . 'Maps_Mapper.php'; |
89 | 89 | |
| 90 | + // This function has been deprecated in 1.16, but needed for earlier versions. |
| 91 | + // It's present in 1.16 as a stub, but lets check if it exists in case it gets removed at some point. |
| 92 | + if ( function_exists( 'wfLoadExtensionMessages' ) ) { |
| 93 | + wfLoadExtensionMessages( 'Maps' ); |
| 94 | + } |
| 95 | + |
90 | 96 | wfRunHooks( 'MappingFeatureLoad' ); |
91 | 97 | wfRunHooks( 'MappingServiceLoad' ); |
92 | 98 | |