r47513 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47512‎ | r47513 | r47514 >
Date:21:22, 19 February 2009
Author:skizzerz
Status:deferred
Tags:
Comment:
* allow template parameters in the passed arguments
Modified paths:
  • /trunk/extensions/AmazonPlus/AmazonPlus.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AmazonPlus/AmazonPlus.php
@@ -47,7 +47,7 @@
4848 'name' => 'AmazonPlus',
4949 'description' => 'A highly customizable extension to display Amazon information',
5050 'descriptionmsg' => 'amazonplus-desc',
51 - 'version' => '0.3.1',
 51+ 'version' => '0.4.0',
5252 'url' => 'http://www.mediawiki.org/wiki/Extension:AmazonPlus',
5353 'author' => 'Ryan Schmidt',
5454 );
@@ -98,6 +98,9 @@
9999
100100 # Parse out template parameters only before getting setting up the class so {{{1}}} and the like work
101101 $input = $parser->replaceVariables( $input, false, true );
 102+ foreach( $args as $key => $arg ) {
 103+ $args[$key] = $parser->replaceVariables( $arg, false, true );
 104+ }
102105
103106 $am = new AmazonPlus( $title, $args, $input );
104107 if ( !$am instanceOf AmazonPlus ) {

Status & tagging log