X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FParserOutput.php;h=be574f00330c56fcfc7b078aa41e5a7717f180c3;hp=ff9c28d2bbd8bad6acb7c15710cbb05d7df174da;hb=c8e482371407477ecd4f0a1b5778e565d3963a93;hpb=e74ba29aa6b86995a79200fc8b1bb2932d3a1675;ds=sidebyside diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index ff9c28d2bb..be574f0033 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -271,13 +271,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.