Index: trunk/extensions/GoogleMaps/SpecialGoogleMapsKML.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | parent::__construct('GoogleMapsKML', '', false /* listed */); |
14 | 14 | } |
15 | 15 | function execute( $params ) { |
16 | | - global $wgRequest, $wgOut, $wgTitle, $wgUser; |
| 16 | + global $wgRequest, $wgOut, $wgUser; |
17 | 17 | global $wgContLang, $wgProxyKey, $wgParser; |
18 | 18 | $article = $wgRequest->getText( 'article', $params ); |
19 | 19 | $map = $wgRequest->getText( 'map', $params ); |
— | — | @@ -36,10 +36,10 @@ |
37 | 37 | $popts = ParserOptions::newFromUser( $wgUser ); |
38 | 38 | $popts->setEditSection( false ); |
39 | 39 | |
40 | | - $wgParser->startExternalParse( $wgTitle, $popts, OT_WIKI, true ); |
| 40 | + $wgParser->startExternalParse( $this->getTitle(), $popts, OT_WIKI, true ); |
41 | 41 | |
42 | 42 | $localParser = new Parser(); |
43 | | - $localParser->startExternalParse( $wgTitle, $popts, OT_WIKI, true ); |
| 43 | + $localParser->startExternalParse( $this->getTitle(), $popts, OT_WIKI, true ); |
44 | 44 | |
45 | 45 | if (preg_match_all("/<googlemap( .*?|)>(.*?)<\/googlemap>/s", $revision->getText(), $matches)) { |
46 | 46 | $exporter->addFileHeader(); |