Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -236,9 +236,10 @@ |
237 | 237 | $wgParser->isStable = true; |
238 | 238 | # Don't show section-edit links, they can be old and misleading |
239 | 239 | $options->setEditSection(false); |
240 | | - //$options->setEditSection( $id==$article->getLatest() ); |
| 240 | + // $options->setEditSection( $id==$article->getLatest() ); |
241 | 241 | # Parse the new body, wikitext -> html |
242 | | - $parserOut = $wgParser->parse( $text, $article->getTitle(), $options, true, true, $id ); |
| 242 | + $title = $article->getTitle(); // avoid pass-by-reference error |
| 243 | + $parserOut = $wgParser->parse( $text, $title, $options, true, true, $id ); |
243 | 244 | # Reset $wgParser |
244 | 245 | $wgParser->isStable = false; // Done! |
245 | 246 | |