r68162 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68161‎ | r68162 | r68163 >
Date:10:20, 17 June 2010
Author:nad
Status:deferred
Tags:
Comment:
use $wgTitle in parsePart() instead of $this->title
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin.php (modified) (history)
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -760,9 +760,9 @@
761761 * Used to parse any braces in select lists when populating form
762762 */
763763 function parsePart( $part ) {
764 - global $wgUser, $wgParser;
 764+ global $wgTitle, $wgUser, $wgParser;
765765 $options = ParserOptions::newFromUser( $wgUser );
766 - $html = $wgParser->parse( $part[0], $this->title, $options, true, true )->getText();
 766+ $html = $wgParser->parse( $part[0], $wgTitle, $options, true, true )->getText();
767767 return preg_match( "|(<option.+</option>)|is", $html, $m ) ? $m[1] : '';
768768 }
769769
Index: trunk/extensions/RecordAdmin/RecordAdmin.php
@@ -11,7 +11,7 @@
1212 * @licence GNU General Public Licence 2.0 or later
1313 */
1414
15 -define( 'RECORDADMIN_VERSION', '0.12.0, 2010-06-06' );
 15+define( 'RECORDADMIN_VERSION', '0.12.1, 2010-06-17' );
1616
1717 $wgRecordAdminUseNamespaces = false; # Whether record articles should be in a namespace of the same name as their type
1818 $wgRecordAdminCategory = 'Records'; # Category containing record types

Status & tagging log