mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-24 07:33:49 +00:00
Removed $wgTitle references from parser extensions. JobQueue.php may parse articles without setting $wgTitle.
This commit is contained in:
parent
12eb4de999
commit
085b02f0bc
4
Cite.php
4
Cite.php
|
@ -526,11 +526,9 @@ function wfCite() {
|
||||||
* @return string The parsed text
|
* @return string The parsed text
|
||||||
*/
|
*/
|
||||||
function parse( $in ) {
|
function parse( $in ) {
|
||||||
global $wgTitle;
|
|
||||||
|
|
||||||
$ret = $this->mParser->parse(
|
$ret = $this->mParser->parse(
|
||||||
$in,
|
$in,
|
||||||
$wgTitle,
|
$this->mParser->mTitle,
|
||||||
$this->mParser->mOptions,
|
$this->mParser->mOptions,
|
||||||
// Avoid whitespace buildup
|
// Avoid whitespace buildup
|
||||||
false,
|
false,
|
||||||
|
|
Loading…
Reference in a new issue