From 085b02f0bc7386a876d7dbc04b7aa27572e24e8f Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 28 Feb 2006 05:05:07 +0000 Subject: [PATCH] Removed $wgTitle references from parser extensions. JobQueue.php may parse articles without setting $wgTitle. --- Cite.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Cite.php b/Cite.php index f8d8a7483..bf06334e7 100644 --- a/Cite.php +++ b/Cite.php @@ -526,11 +526,9 @@ function wfCite() { * @return string The parsed text */ function parse( $in ) { - global $wgTitle; - $ret = $this->mParser->parse( $in, - $wgTitle, + $this->mParser->mTitle, $this->mParser->mOptions, // Avoid whitespace buildup false,