r66963 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66962‎ | r66963 | r66964 >
Date:13:33, 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/SemanticMaps/SemanticMaps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/SemanticMaps.php
@@ -68,6 +68,12 @@
6969 foreach ( array_keys( $egMapsServices ) as $name ) $services[] = wfMsg( 'maps_' . $name );
7070 $services_list = $wgLang->listToText( $services );
7171
 72+ // This function has been deprecated in 1.16, but needed for earlier versions.
 73+ // It's present in 1.16 as a stub, but lets check if it exists in case it gets removed at some point.
 74+ if ( function_exists( 'wfLoadExtensionMessages' ) ) {
 75+ wfLoadExtensionMessages( 'SemanticMaps' );
 76+ }
 77+
7278 $wgExtensionCredits['other'][] = array(
7379 'path' => __FILE__,
7480 'name' => wfMsg( 'semanticmaps_name' ),

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