r78500 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78499‎ | r78500 | r78501 >
Date:18:08, 16 December 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added new loadMessages() function, which is a wrapper around wfLoadExtensionMessages() so that it's only called for MW < 1.16
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.php
@@ -470,4 +470,13 @@
471471 $parser->mOutput->setProperty( 'formdefinition', $form_def );
472472 return true;
473473 }
 474+
 475+ /*
 476+ * Loads messages only for MediaWiki versions that need it (< 1.16)
 477+ */
 478+ public static function loadMessages() {
 479+ if ( version_compare( $wgVersion, '1.16', '<' ) ) {
 480+ wfLoadExtensionMessages( 'SemanticForms' );
 481+ }
 482+ }
474483 }

Status & tagging log