r66962 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66961‎ | r66962 | r66963 >
Date:13:32, 27 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r66934 - re-added the call to the function and added a check if it exists for compatibility reasons
Modified paths:
  • /trunk/extensions/Maps/Maps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.php
@@ -82,10 +82,16 @@
8383 global $egMapsDefaultService, $egMapsAvailableServices, $egMapsServices, $egMapsDefaultGeoService, $egMapsScriptPath;
8484 global $egMapsDir, $egMapsAvailableFeatures, $egMapsUseMinJs, $egMapsJsExt, $egMapsStyleVersion;
8585
86 - // Autoload the general classes
 86+ // Autoload the general classes.
8787 $wgAutoloadClasses['MapsCoordinateParser'] = $egMapsDir . 'Maps_CoordinateParser.php';
8888 $wgAutoloadClasses['MapsMapper'] = $egMapsDir . 'Maps_Mapper.php';
8989
 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+
9096 wfRunHooks( 'MappingFeatureLoad' );
9197 wfRunHooks( 'MappingServiceLoad' );
9298

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r66934Large commit. Removed 800+ references to no-op wfLoadExtensionMessages()demon22:25, 26 May 2010

Status & tagging log