Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -475,6 +475,7 @@ |
476 | 476 | * Loads messages only for MediaWiki versions that need it (< 1.16) |
477 | 477 | */ |
478 | 478 | public static function loadMessages() { |
| 479 | + global $wgVersion; |
479 | 480 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
480 | 481 | wfLoadExtensionMessages( 'SemanticForms' ); |
481 | 482 | } |
Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -901,6 +901,7 @@ |
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 | + global $wgVersion; |
905 | 906 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
906 | 907 | wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
907 | 908 | } |
Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -751,6 +751,7 @@ |
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 | + global $wgVersion; |
755 | 756 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
756 | 757 | wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
757 | 758 | } |
— | — | @@ -768,6 +769,7 @@ |
769 | 770 | } |
770 | 771 | $cur_value_in_template = $no; |
771 | 772 | } elseif ( count( $cur_value ) == 2 ) { |
| 773 | + global $wgVersion; |
772 | 774 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
773 | 775 | wfLoadExtensionMessages( 'SemanticMediaWiki' ); |
774 | 776 | } |