r79064 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79063‎ | r79064 | r79065 >
Date:15:36, 27 December 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added check around deprecated wfLoadExtensionMessages() function, for MW 1.18+
Modified paths:
  • /trunk/extensions/SemanticDrilldown/includes/SD_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.php
@@ -249,7 +249,9 @@
250250 }
251251
252252 static function booleanToString( $bool_value ) {
253 - wfLoadExtensionMessages( 'SemanticMediaWiki' );
 253+ if ( function_exists( 'wfLoadExtensionMessages' ) ) {
 254+ wfLoadExtensionMessages( 'SemanticMediaWiki' );
 255+ }
254256 $words_field_name = ( $bool_value == true ) ? 'smw_true_words' : 'smw_false_words';
255257 $words_array = explode( ',', wfMsgForContent( $words_field_name ) );
256258 // go with the value in the array that tends to be "yes" or

Status & tagging log