r92644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92643‎ | r92644 | r92645 >
Date:17:15, 20 July 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
parse values of field parameters in forms
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormField.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormField.php
@@ -289,8 +289,18 @@
290290 // Now merge in the default values set by SFFormPrinter, if
291291 // there were any - put the default values first, so that if
292292 // there's a conflict they'll be overridden.
293 - if ( $default_args != null )
 293+ if ( $default_args != null ) {
294294 $other_args = array_merge( $default_args, $other_args );
 295+ }
 296+
 297+ global $wgParser;
 298+ foreach ( $other_args as $argname => $argvalue ) {
 299+ if ( is_string( $argvalue ) ) {
 300+ $other_args[$argname] =
 301+ $wgParser->recursiveTagParse( $argvalue );
 302+ }
 303+ }
 304+
295305 return $other_args;
296306 }
297307 }