X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FWikiTextStructure.php;h=0eadc3c67a6d9a887be9f28f066c3eec6c9fbcbd;hb=e74ba29aa6b86995a79200fc8b1bb2932d3a1675;hp=aeb96b6531d5485633622b775d3204ac0d0e3b62;hpb=89539f2aa1b158fdcc703ad053e2580cb97a6385;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/WikiTextStructure.php b/includes/content/WikiTextStructure.php index aeb96b6531..0eadc3c67a 100644 --- a/includes/content/WikiTextStructure.php +++ b/includes/content/WikiTextStructure.php @@ -146,9 +146,10 @@ class WikiTextStructure { if ( !is_null( $this->allText ) ) { return; } - $this->parserOutput->setEditSectionTokens( false ); - $this->parserOutput->setTOCEnabled( false ); - $text = $this->parserOutput->getText(); + $text = $this->parserOutput->getText( [ + 'enableSectionEditTokens' => false, + 'allowTOC' => false, + ] ); if ( strlen( $text ) == 0 ) { $this->allText = ""; // empty text - nothing to seek here