r84421 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84420‎ | r84421 | r84422 >
Date:21:08, 20 March 2011
Author:ialex
Status:deferred
Tags:
Comment:
$wgTitle -> $this->getTitle()
Modified paths:
  • /trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php
@@ -12,7 +12,7 @@
1313 parent::__construct('GoogleMapsKML', '', false /* listed */);
1414 }
1515 function execute( $params ) {
16 - global $wgRequest, $wgOut, $wgTitle, $wgUser;
 16+ global $wgRequest, $wgOut, $wgUser;
1717 global $wgContLang, $wgProxyKey, $wgParser;
1818 $article = $wgRequest->getText( 'article', $params );
1919 $map = $wgRequest->getText( 'map', $params );
@@ -36,10 +36,10 @@
3737 $popts = ParserOptions::newFromUser( $wgUser );
3838 $popts->setEditSection( false );
3939
40 - $wgParser->startExternalParse( $wgTitle, $popts, OT_WIKI, true );
 40+ $wgParser->startExternalParse( $this->getTitle(), $popts, OT_WIKI, true );
4141
4242 $localParser = new Parser();
43 - $localParser->startExternalParse( $wgTitle, $popts, OT_WIKI, true );
 43+ $localParser->startExternalParse( $this->getTitle(), $popts, OT_WIKI, true );
4444
4545 if (preg_match_all("/<googlemap( .*?|)>(.*?)<\/googlemap>/s", $revision->getText(), $matches)) {
4646 $exporter->addFileHeader();

Status & tagging log