diff options
author | C. Scott Ananian <cscott@cscott.net> | 2024-02-16 10:46:22 -0500 |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2024-04-12 16:06:47 -0400 |
commit | add081f5f36e5f1480899eba79b140dc18224ec0 (patch) | |
tree | 6e8dc0fe3da16eed3f32b982d805de7c11e81381 /includes/parser/PPFrame_Hash.php | |
parent | 4c047b6529817ad9f948d983f230c8cd06379e61 (diff) | |
download | mediawikicore-add081f5f36e5f1480899eba79b140dc18224ec0.tar.gz mediawikicore-add081f5f36e5f1480899eba79b140dc18224ec0.zip |
[Parser] Emit warnings for accesses to deprecated $mOptions property
Code search:
https://codesearch-beta.wmcloud.org/search/?q=arser-%3EmOptions%5Cb
Patches to non-deployed code:
* https://github.com/ProfessionalWiki/SubPageList/pull/75
* PhpTagsFunctions: I1a72e88c5cc3d0587f085f5fa65d1f7ebb9fb602
* S5SlideShow: Ie2268432c9398af11fd02216a45df78e72609e15
* SemanticACL: I01243660d7241e094f60f5acb97726539c07c676
* VisualData: I1a972e159e6de3f94589a0c215d7f96c602b04bb
* https://github.com/Open-CSP/WikiSearch/pull/50
* https://github.com/SemanticMediaWiki/SemanticFormsSelect/pull/112
* https://github.com/SemanticMediaWiki/SemanticResultFormats/pull/828
* https://github.com/haleyjd/WikiActivity/pull/2
* https://github.com/thaider/Tweeki/pull/273
Bug: T236810
Bug: T236812
Change-Id: I8b98e851e6536f1a02bc41a6253c9ffe7c50ed36
Diffstat (limited to 'includes/parser/PPFrame_Hash.php')
-rw-r--r-- | includes/parser/PPFrame_Hash.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/parser/PPFrame_Hash.php b/includes/parser/PPFrame_Hash.php index 8a4d8ff7ce40..13ac300a3c36 100644 --- a/includes/parser/PPFrame_Hash.php +++ b/includes/parser/PPFrame_Hash.php @@ -302,7 +302,7 @@ class PPFrame_Hash implements PPFrame { # Not in RECOVER_COMMENTS mode (msgnw) though. if ( ( $this->parser->getOutputType() === Parser::OT_HTML || ( $this->parser->getOutputType() === Parser::OT_PREPROCESS && - $this->parser->mOptions->getRemoveComments() ) + $this->parser->getOptions()->getRemoveComments() ) || ( $flags & PPFrame::STRIP_COMMENTS ) ) && !( $flags & PPFrame::RECOVER_COMMENTS ) ) { |