Index: trunk/extensions/DataTransfer/includes/DT_Utils.php |
— | — | @@ -7,6 +7,16 @@ |
8 | 8 | */ |
9 | 9 | class DTUtils { |
10 | 10 | |
| 11 | + /* |
| 12 | + * Loads messages only for MediaWiki versions that need it (< 1.16) |
| 13 | + */ |
| 14 | + public static function loadMessages() { |
| 15 | + global $wgVersion; |
| 16 | + if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
| 17 | + wfLoadExtensionMessages( 'SemanticForms' ); |
| 18 | + } |
| 19 | + } |
| 20 | + |
11 | 21 | static function printImportingMessage() { |
12 | 22 | return "\t" . Xml::element( 'p', null, wfMsg( 'dt_import_importing' ) ) . "\n"; |
13 | 23 | } |