Index: trunk/extensions/DataTransfer/specials/DT_ImportCSV.php |
— | — | @@ -55,9 +55,7 @@ |
56 | 56 | * Constructor |
57 | 57 | */ |
58 | 58 | public function DTImportCSV() { |
59 | | - global $wgLanguageCode; |
60 | 59 | parent::__construct( 'ImportCSV' ); |
61 | | - DTUtils::loadMessages(); |
62 | 60 | } |
63 | 61 | |
64 | 62 | function execute( $query ) { |
Index: trunk/extensions/DataTransfer/specials/DT_ImportXML.php |
— | — | @@ -13,9 +13,7 @@ |
14 | 14 | * Constructor |
15 | 15 | */ |
16 | 16 | public function DTImportXML() { |
17 | | - global $wgLanguageCode; |
18 | 17 | parent::__construct( 'ImportXML' ); |
19 | | - DTUtils::loadMessages(); |
20 | 18 | } |
21 | 19 | |
22 | 20 | function execute( $query ) { |
Index: trunk/extensions/DataTransfer/specials/DT_ViewXML.php |
— | — | @@ -13,9 +13,7 @@ |
14 | 14 | * Constructor |
15 | 15 | */ |
16 | 16 | public function DTViewXML() { |
17 | | - global $wgLanguageCode; |
18 | 17 | parent::__construct( 'ViewXML' ); |
19 | | - DTUtils::loadMessages(); |
20 | 18 | } |
21 | 19 | |
22 | 20 | function execute( $query ) { |
Index: trunk/extensions/DataTransfer/includes/DT_Utils.php |
— | — | @@ -7,16 +7,6 @@ |
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( 'DataTransfer' ); |
18 | | - } |
19 | | - } |
20 | | - |
21 | 11 | static function printImportingMessage() { |
22 | 12 | return "\t" . Xml::element( 'p', null, wfMsg( 'dt_import_importing' ) ) . "\n"; |
23 | 13 | } |