r80577 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80576‎ | r80577 | r80578 >
Date:17:52, 19 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Small improvement to bc code
Modified paths:
  • /trunk/extensions/SemanticMaps/SemanticMaps.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/SemanticMaps.php
@@ -91,7 +91,7 @@
9292 * @return true
9393 */
9494 function smfSetup() {
95 - global $wgExtensionCredits, $wgLang;
 95+ global $wgExtensionCredits, $wgLang, $wgVersion;
9696
9797 // Creation of a list of internationalized service names.
9898 $services = array();
@@ -100,9 +100,9 @@
101101
102102 // This function has been deprecated in 1.16, but needed for earlier versions.
103103 // It's present in 1.16 as a stub, but lets check if it exists in case it gets removed at some point.
104 - if ( function_exists( 'wfLoadExtensionMessages' ) ) {
 104+ if ( version_compare( $wgVersion, '1.15', '<=' ) ) {
105105 wfLoadExtensionMessages( 'SemanticMaps' );
106 - }
 106+ }
107107
108108 $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(
109109 'path' => __FILE__,

Status & tagging log