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