Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -739,7 +739,7 @@ |
740 | 740 | } |
741 | 741 | |
742 | 742 | # Parse any brace structures |
743 | | - global $wgUser, $wgParser; |
| 743 | + global $wgTitle, $wgUser, $wgParser; |
744 | 744 | $options = ParserOptions::newFromUser( $wgUser ); |
745 | 745 | $max = 25; |
746 | 746 | do { |
— | — | @@ -749,7 +749,7 @@ |
750 | 750 | } |
751 | 751 | if ( $braces ) { |
752 | 752 | $part = substr( $this->form, $braces['OFFSET'], $braces['LENGTH'] ); |
753 | | - $html = $wgParser->parse( $part, $this->title, $options, true, true )->getText(); |
| 753 | + $html = $wgParser->parse( $part, $wgTitle, $options, true, true )->getText(); |
754 | 754 | $this->form = substr_replace( $this->form, $html, $braces['OFFSET'], $braces['LENGTH'] ); |
755 | 755 | } |
756 | 756 | } while ( --$max > 0 && $braces ); |