* Added index, fromtitle and byteoffset fields to action=parse&prop=sections
output
* (bug 19313) action=rollback returns wrong revid on master/slave setups
+* (bug 19323) action=parse doesn't return section tree on pages with Cite
+ warnings
=== Languages updated in 1.16 ===
wfProfileIn( __METHOD__ );
wfRunHooks( 'ParserBeforeStrip', array( &$this, &$text, &$this->mStripState ) );
wfRunHooks( 'ParserAfterStrip', array( &$this, &$text, &$this->mStripState ) );
- $text = $this->internalParse( $text );
+ $text = $this->internalParse( $text, false );
wfProfileOut( __METHOD__ );
return $text;
}
*
* @private
*/
- function internalParse( $text ) {
- $isMain = true;
+ function internalParse( $text, $isMain = true ) {
wfProfileIn( __METHOD__ );
$origText = $text;
}
$this->setOutputType( $oldType );
- $this->mOutput->setSections( $tocraw );
# Never ever show TOC if no headers
if( $numVisible < 1 ) {
$toc = $sk->tocList( $toc );
}
- $this->mOutput->setTOCHTML( $toc );
+ if ( $isMain ) {
+ $this->mOutput->setSections( $tocraw );
+ $this->mOutput->setTOCHTML( $toc );
+ }
# split up and insert constructed headlines