r85764 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85763‎ | r85764 | r85765 >
Date:18:01, 10 April 2011
Author:yaron
Status:deferred
Tags:
Comment:
Added new method, loadMessages(), that calls wfLoadExtensionMessages() when necessary
Modified paths:
  • /trunk/extensions/DataTransfer/includes/DT_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DataTransfer/includes/DT_Utils.php
@@ -7,6 +7,16 @@
88 */
99 class DTUtils {
1010
 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+
1121 static function printImportingMessage() {
1222 return "\t" . Xml::element( 'p', null, wfMsg( 'dt_import_importing' ) ) . "\n";
1323 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r88449Fix to r85764 - wrong extension name!yaron12:37, 20 May 2011

Status & tagging log