Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -470,4 +470,13 @@ |
471 | 471 | $parser->mOutput->setProperty( 'formdefinition', $form_def ); |
472 | 472 | return true; |
473 | 473 | } |
| 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 | + } |
474 | 483 | } |