http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62010
Revision: 62010 Author: bawolff Date: 2010-02-05 04:37:53 +0000 (Fri, 05 Feb 2010) Log Message: ----------- Bug 22363 - make <poem> handle template parameters (aka {{{1}}}) Modified Paths: -------------- trunk/extensions/Poem/Poem.php Modified: trunk/extensions/Poem/Poem.php =================================================================== --- trunk/extensions/Poem/Poem.php 2010-02-05 04:33:26 UTC (rev 62009) +++ trunk/extensions/Poem/Poem.php 2010-02-05 04:37:53 UTC (rev 62010) @@ -35,7 +35,7 @@ return true; } -function PoemExtension( $in, $param=array(), $parser=null ) { +function PoemExtension( $in, $param=array(), $parser=null, $frame=false ) { /* using newlines in the text will cause the parser to add <p> tags, * which may not be desired in some cases @@ -49,7 +49,7 @@ array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ), array( "", "", "$tag\n", "str_replace(' ',' ','\\1')" ), $in ); - $text = $parser->recursiveTagParse( $text ); + $text = $parser->recursiveTagParse( $text, $frame ); } else { $text = preg_replace( array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ), _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs