mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-12-18 02:40:38 +00:00
Rename deprecated usage of ParserOutput::{get,set}Property()
Bug: T287216 Depends-On: Ie963eea5aa0f0e984ced7c4dfa0fd65d57313cfa Change-Id: I1633f6fa00193df6ea1d6633de07bc8d2b269cbf
This commit is contained in:
parent
810125500b
commit
6e1e698873
|
@ -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"
|
||||
|
|
|
@ -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( [
|
||||
|
|
Loading…
Reference in a new issue