Make Parser::$mOutput private
This property was deprecated in 1.35. The replacement function
Parser::getOutput() was introduced in MediaWiki 1.12.2
(commit 350b498b9f).
Code search:
https://codesearch.wmcloud.org/search/?q=ser-%3EmOutput&i=nope&files=&excludeFiles=&repos=
Depends-On clauses below are for WMF-deployed code. Other uses in
non-WMF-deployed code have been patched in:
* I550b19f58520f30ce158dab1969108edc9cdcce9 (SemanticDrilldown)
* https://github.com/SemanticMediaWiki/SemanticFormsSelect/pull/81
* Ic2798b0df5f1f11aea6becdfc186f1be0ecb43e4 (ApprovedRevs)
* I58dff3fc17292d9f6b5e1e43b3d18485027ec880 (DisplayTitle)
* Idd9736dacf257788d74e503687b8554e138ec3c5 (JsonData)
* Ia42f9fa0c45abe6eef21c9815f3f6d6794e3cf95 (MediaFunctions)
* I4f4f7b0118470741a6cdaba562f858e425fcf350 (ParserFunctions)
* Ie44573d9952e62e1fe75e2b9f4691e0d757c53c1 (PhpTags)
* Ib59a4789cfeebf1acbc24c5c00fb996413ae9d5c (SmoothGallery)
* I2b6f3be928a4cb101836ded7abaf2eb8665d4d50 (TinyMCE)
* https://gitlab.com/hydrawiki/extensions/DynamicPageList/-/merge_requests/118
* https://gitlab.com/nonsensopedia/extensions/advancedbacklinks/-/merge_requests/91
* https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/4935
Bug: T275160
Depends-On: I4f4f7b0118470741a6cdaba562f858e425fcf350
Change-Id: Ib5e9e22db1781ba338dc63ec479ef587de2cd675
This commit is contained in:
parent
0f5f6d221d
commit
e95b42eda6
3 changed files with 5 additions and 4 deletions
|
|
@ -291,6 +291,7 @@ because of Phabricator reports.
|
|||
private:
|
||||
- $mTagHooks - use Parser::getTags()
|
||||
- $mFunctionHooks - use Parser::getFunctionHooks()
|
||||
- $mOutput - use Parser::getOutput()
|
||||
* The ParserBeforeTidy hook, deprecated in 1.35, has been removed.
|
||||
* The ParserBeforeTidy, ParserBeforeStrip, and ParserAfterStrip hooks,
|
||||
deprecated in 1.35, have been removed.
|
||||
|
|
|
|||
|
|
@ -482,9 +482,9 @@ class CoreParserFunctions {
|
|||
&& !$title->hasFragment()
|
||||
&& $title->equals( $parser->getTitle() ) )
|
||||
) {
|
||||
$old = $parser->mOutput->getProperty( 'displaytitle' );
|
||||
$old = $parser->getOutput()->getProperty( 'displaytitle' );
|
||||
if ( $old === false || $arg !== 'displaytitle_noreplace' ) {
|
||||
$parser->mOutput->setDisplayTitle( $text );
|
||||
$parser->getOutput()->setDisplayTitle( $text );
|
||||
}
|
||||
if ( $old !== false && $old !== $text && !$arg ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -185,9 +185,8 @@ class Parser {
|
|||
# Cleared with clearState():
|
||||
/**
|
||||
* @var ParserOutput
|
||||
* @deprecated since 1.35; use Parser::getOutput()
|
||||
*/
|
||||
public $mOutput;
|
||||
private $mOutput;
|
||||
private $mAutonumber;
|
||||
|
||||
/**
|
||||
|
|
@ -1018,6 +1017,7 @@ class Parser {
|
|||
|
||||
/**
|
||||
* @return ParserOutput
|
||||
* @since 1.12.2
|
||||
*/
|
||||
public function getOutput() {
|
||||
return $this->mOutput;
|
||||
|
|
|
|||
Loading…
Reference in a new issue