Last modified: 2007-04-24 20:48:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T11393, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9393 - Stable version extension errors out with later MediaWiki versions
Stable version extension errors out with later MediaWiki versions
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-22 23:11 UTC by netocrat
Modified: 2007-04-24 20:48 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description netocrat 2007-03-22 23:11:19 UTC
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;
Comment 1 Aaron Schulz 2007-04-24 20:48:02 UTC
Done in r21544.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links