r81421 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81420‎ | r81421 | r81422 >
Date:21:37, 2 February 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Improved bc check
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php
@@ -253,7 +253,8 @@
254254 * @since 1.5.1
255255 */
256256 function smwfLoadExtensionMessages( $extensionName ) {
257 - if ( function_exists( 'wfLoadExtensionMessages' ) ) {
 257+ global $wgVersion;
 258+ if ( version_compare( $wgVersion, '1.16', '<' ) ) {
258259 wfLoadExtensionMessages( $extensionName );
259260 }
260261 }

Status & tagging log