Special:Cite: Load RL modules of parsed content

Bug: 39049
Change-Id: Ib14a7cbc54e0317d7fa47f5569e54f5e0381613c
This commit is contained in:
Derk-Jan Hartman 2014-05-05 01:14:55 +02:00
parent 52195376d5
commit d694691982

View file

@ -137,7 +137,13 @@ class CiteOutput {
}
$ret = $wgParser->parse( $msg, $this->mTitle, $this->mParserOptions, false, true, $this->getRevId() );
$wgOut->addModules( 'ext.specialcite' );
$wgOut->addHTML( $ret->getText() );
# Introduced in 1.24
if( method_exists( $wgOut, 'addParserOutputContent' ) ) {
$wgOut->addParserOutputContent( $ret );
} else {
$wgOut->addHTML( $ret->getText() );
}
}
function genParserOptions() {