Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -901,7 +901,9 @@ |
902 | 902 | // default to false - no need to check if it matches a 'false' word |
903 | 903 | $vlc = strtolower( trim( $cur_value ) ); |
904 | 904 | // manually load SMW's message values, if they weren't loaded before |
905 | | - wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 905 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 906 | + wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 907 | + } |
906 | 908 | if ( in_array( $vlc, explode( ',', wfMsgForContent( 'smw_true_words' ) ), TRUE ) ) { |
907 | 909 | $checked_str = ' checked="checked"'; |
908 | 910 | } else { |
Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -751,7 +751,9 @@ |
752 | 752 | if ( count( $cur_value ) == 1 ) { |
753 | 753 | // manually load SMW's message values here, in case they |
754 | 754 | // didn't get loaded before |
755 | | - wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 755 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 756 | + wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 757 | + } |
756 | 758 | $words_for_false = explode( ',', wfMsgForContent( 'smw_false_words' ) ); |
757 | 759 | // for each language, there's a series of words that are |
758 | 760 | // equal to false - get the word in the series that matches |
— | — | @@ -766,7 +768,9 @@ |
767 | 769 | } |
768 | 770 | $cur_value_in_template = $no; |
769 | 771 | } elseif ( count( $cur_value ) == 2 ) { |
770 | | - wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 772 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 773 | + wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
| 774 | + } |
771 | 775 | $words_for_true = explode( ',', wfMsgForContent( 'smw_true_words' ) ); |
772 | 776 | // get the value in the 'true' series that tends to be "yes", |
773 | 777 | // and go with that one - generally, that's the third word |