Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -302,6 +302,7 @@ |
303 | 303 | if ( count( $records ) < 1 ) return wfMsg( 'recordadmin-nomatch' ); |
304 | 304 | |
305 | 305 | $special = Title::makeTitle( NS_SPECIAL, 'RecordAdmin' ); |
| 306 | + $parser = new Parser; |
306 | 307 | $type = $this->type; |
307 | 308 | $sortable = $sortable ? ' sortable' : ''; |
308 | 309 | $br = $sortable ? '<br />' : ''; |
— | — | @@ -345,7 +346,7 @@ |
346 | 347 | $text .= "|$col=$v"; |
347 | 348 | } |
348 | 349 | $text .= '}}'; |
349 | | - $text = $wgParser->parse( $text, $special, $wgParser->mOptions, true, true )->getText(); |
| 350 | + $text = $wgParser->parse( $text, $special, $parser->mOptions, true, true )->getText(); |
350 | 351 | $text = preg_replace( "|<(/?td.*?)>|", "<$1>", $text ); |
351 | 352 | $table .= "$text\n"; |
352 | 353 | } |
— | — | @@ -359,7 +360,7 @@ |
360 | 361 | ); |
361 | 362 | foreach ( $cols ? $cols : array_keys( $th ) as $col ) { |
362 | 363 | if ( !isset( $row[$col] ) ) { |
363 | | - $v = isset( $r[$col] ) ? $wgParser->parse( $r[$col], $special, $wgParser->mOptions, true, true )->getText() : ' '; |
| 364 | + $v = isset( $r[$col] ) ? $parser->parse( $r[$col], $special, $wgParser->mOptions, true, true )->getText() : ' '; |
364 | 365 | $class = 'col' . preg_replace( '|\W|', '-', $col ); |
365 | 366 | $row[$col] = "<td class='$class'>$v</td>"; |
366 | 367 | } |