X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FParserOutput.php;h=e2efaff40f706a2b5d92f3f746d1a4368af75a69;hp=8f7ed24386bda8f6a352030983400a79f4ff314b;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=032428059eb010fafa09bac6ecfb0890d78ccfbf diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 8f7ed24386..e2efaff40f 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -273,13 +273,16 @@ class ParserOutput extends CacheTime { * @return string HTML */ public function getText( $options = [] ) { - // @todo Warn if !array_key_exists( 'allowTOC', $options ) && empty( $this->mTOCEnabled ) + if ( !array_key_exists( 'allowTOC', $options ) && empty( $this->mTOCEnabled ) ) { + wfDeprecated( 'ParserOutput stateful allowTOC', '1.31' ); + } - // @todo Warn if !array_key_exists( 'enableSectionEditLinks', $options ) - // && !$this->mEditSectionTokens // Note that while $this->mEditSectionTokens formerly defaulted to false, // ParserOptions->getEditSection() defaults to true and Parser copies // that to us so true makes more sense as the stateless default. + if ( !array_key_exists( 'enableSectionEditLinks', $options ) && !$this->mEditSectionTokens ) { + wfDeprecated( 'ParserOutput stateful enableSectionEditLinks', '1.31' ); + } $options += [ // empty() here because old cached versions might lack the field somehow.