Page MenuHomePhabricator

Stable version extension errors out with later MediaWiki versions
Closed, ResolvedPublic

Description

Author: netocrat

Description:
In the SpecialStableVersion::getCacheText() method, the result of
Parser::parse() is passed as the first parameter to Parser::replaceVariables().
That function expects this parameter to be a string, however in later versions
of MediaWiki it will be a ParserOutput object. This problem can be resolved
simply - and retaining backwards compatibility - by inserting the following text
at line number 384 (i.e. immediately following the line reading: $text =
$p->parse( $text, $title, $parserOptions );):

			$text = is_object($text) ? $text->mText : $text;

Version: unspecified
Severity: normal

Details

Reference
bz9393

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:38 PM
bzimport set Reference to bz9393.
bzimport added a subscriber: Unknown Object (MLST).