Rename deprecated usage of ParserOutput::{get,set}Property()

Bug: T287216
Depends-On: Ie963eea5aa0f0e984ced7c4dfa0fd65d57313cfa
Change-Id: I1633f6fa00193df6ea1d6633de07bc8d2b269cbf
This commit is contained in:
C. Scott Ananian 2021-10-07 19:51:01 -04:00
parent 810125500b
commit 6e1e698873
2 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.36.0"
"MediaWiki": ">= 1.38.0"
},
"APIModules": {
"templatedata": "ApiTemplateData"

View file

@ -90,7 +90,7 @@ class TemplateDataHooks {
}
// TODO: Remove when not needed any more, see T267926
self::logChangeEvent( $revisionRecord, $parserOutput->getProperty( 'templatedata' ), $user );
self::logChangeEvent( $revisionRecord, $parserOutput->getPageProperty( 'templatedata' ), $user );
return true;
}
@ -196,7 +196,7 @@ class TemplateDataHooks {
$title = $parser->getTitle();
$docPage = wfMessage( 'templatedata-doc-subpage' )->inContentLanguage();
if ( !$title->isSubpage() || $title->getSubpageText() !== $docPage->plain() ) {
$parser->getOutput()->setProperty( 'templatedata', $ti->getJSONForDatabase() );
$parser->getOutput()->setPageProperty( 'templatedata', $ti->getJSONForDatabase() );
}
$parser->getOutput()->addModuleStyles( [