r62010 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62009‎ | r62010 | r62011 >
Date:04:37, 5 February 2010
Author:bawolff
Status:ok
Tags:
Comment:
Bug 22363 - make <poem> handle template parameters (aka {{{1}}})
Modified paths:
  • /trunk/extensions/Poem/Poem.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Poem/Poem.php
@@ -35,7 +35,7 @@
3636 return true;
3737 }
3838
39 -function PoemExtension( $in, $param=array(), $parser=null ) {
 39+function PoemExtension( $in, $param=array(), $parser=null, $frame=false ) {
4040
4141 /* using newlines in the text will cause the parser to add <p> tags,
4242 * which may not be desired in some cases
@@ -49,7 +49,7 @@
5050 array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ),
5151 array( "", "", "$tag\n", "str_replace(' ','&nbsp;','\\1')" ),
5252 $in );
53 - $text = $parser->recursiveTagParse( $text );
 53+ $text = $parser->recursiveTagParse( $text, $frame );
5454 } else {
5555 $text = preg_replace(
5656 array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ),

Status & tagging log