Index: trunk/extensions/Poem/Poem.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | return true; |
37 | 37 | } |
38 | 38 | |
39 | | -function PoemExtension( $in, $param=array(), $parser=null ) { |
| 39 | +function PoemExtension( $in, $param=array(), $parser=null, $frame=false ) { |
40 | 40 | |
41 | 41 | /* using newlines in the text will cause the parser to add <p> tags, |
42 | 42 | * which may not be desired in some cases |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ), |
51 | 51 | array( "", "", "$tag\n", "str_replace(' ',' ','\\1')" ), |
52 | 52 | $in ); |
53 | | - $text = $parser->recursiveTagParse( $text ); |
| 53 | + $text = $parser->recursiveTagParse( $text, $frame ); |
54 | 54 | } else { |
55 | 55 | $text = preg_replace( |
56 | 56 | array( "/^\n/", "/\n$/D", "/\n/", "/^( +)/me" ), |