r68163 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68162‎ | r68163 | r68164 >
Date:10:22, 17 June 2010
Author:nad
Status:deferred
Tags:
Comment:
same in populateForm
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -739,7 +739,7 @@
740740 }
741741
742742 # Parse any brace structures
743 - global $wgUser, $wgParser;
 743+ global $wgTitle, $wgUser, $wgParser;
744744 $options = ParserOptions::newFromUser( $wgUser );
745745 $max = 25;
746746 do {
@@ -749,7 +749,7 @@
750750 }
751751 if ( $braces ) {
752752 $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();
754754 $this->form = substr_replace( $this->form, $html, $braces['OFFSET'], $braces['LENGTH'] );
755755 }
756756 } while ( --$max > 0 && $braces );

Status & tagging log