r75411 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75410‎ | r75411 | r75412 >
Date:07:36, 26 October 2010
Author:janpaul123
Status:deferred
Tags:
Comment:
Small followup to r75344; always remove TOC as we don't want to update it every time, and don't want a TOC to pop up in a partial rendering
Modified paths:
  • /trunk/extensions/InlineEditor/InlineEditorText.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InlineEditor/InlineEditorText.class.php
@@ -207,6 +207,10 @@
208208 $parserOptions = clone $this->article->getParserOptions();
209209 $parserOptions->setEditSection( false );
210210
 211+ // always remove the table of contents as we don't want it pop up at partial parsing
 212+ // or even at the first page render as it is an dependency
 213+ $wikiMarked .= "\n__NOTOC__";
 214+
211215 // run $wikiMarked through the parser and store the result
212216 return $wgParser->parse( $wikiMarked, $this->article->getTitle(),
213217 $parserOptions, true, true, $this->article->getRevIdFetched() );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75344New version of the InlineEditor extension. Changes:...janpaul12309:17, 25 October 2010

Status & tagging log