r81742 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81741‎ | r81742 | r81743 >
Date:15:05, 8 February 2011
Author:platonides
Status:ok
Tags:
Comment:
Quick fix instead of r81738. This way of working is completely unsupported...
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/View.php
@@ -2125,9 +2125,9 @@
21262126 }
21272127
21282128 // Parser gets antsy about parser options here if it hasn't parsed anything before.
 2129+ $wgParser->mOptions = new ParserOptions;
21292130 $wgParser->clearState();
21302131 $wgParser->setTitle( $wgTitle );
2131 - $wgParser->mOptions = new ParserOptions;
21322132
21332133 $sig = $wgOut->parseInline( $sig );
21342134
@@ -2142,9 +2142,9 @@
21432143 $title = $wgTitle ? $wgTitle : $user->getUserPage();
21442144
21452145 // Parser gets antsy about parser options here if it hasn't parsed anything before.
 2146+ $wgParser->mOptions = new ParserOptions;
21462147 $wgParser->clearState();
21472148 $wgParser->setTitle( $title );
2148 - $wgParser->mOptions = new ParserOptions;
21492149
21502150 $sig = $wgParser->preSaveTransform(
21512151 $sig,

Follow-up revisions

RevisionCommit summaryAuthorDate
r81743Same as r81742. At least this agrees to be a "TERRIBLE HACK"platonides15:08, 8 February 2011
r817451.17wmf1: MFT r81742, r81743catrope15:14, 8 February 2011
r818501.17wmf1: Apply r81742 to LiquidThreads_alpha too, per Platonidescatrope22:12, 9 February 2011
r85027MFT various extension fixes: r81713, r81742, r81743, r81908, r81966, r81969, ...demon18:23, 30 March 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81738Tweak for r79018: fatal errors due to something calling parser clearState whe...brion13:31, 8 February 2011

Status & tagging log