r74067 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74066‎ | r74067 | r74068 >
Date:13:13, 1 October 2010
Author:thomasv
Status:ok
Tags:
Comment:
fix table of contents flag
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php
@@ -912,10 +912,12 @@
913913 $firstpage_title->getArticleID(),
914914 $firstpage_title->getLatestRevID()
915915 );
916 - $parser->getOutput()->is_toc = true;
917916 }
918917
919918 if( $header ) {
 919+ if( $header == 'toc') {
 920+ $parser->getOutput()->is_toc = true;
 921+ }
920922 $text_links = $this->parse_index_links( $index_title );
921923 $h_out = '{{:MediaWiki:Proofreadpage_header_template';
922924 $h_out .= "|value=$header";

Status & tagging log