Replace ~10 deprecated "Article::getContent()" calls in several MediaWiki extensions (III)
This task might be boring, but boring stuff is also part of a developer's job.
In MediaWiki Core's ContentHandler "module", a lot of hooks+functions were deprecated in version 1.21 (1.21 is unsupported since 2014).
Many of these deprecated hooks+functions are still used in code of MediaWiki extensions ("technical debt") and should be replaced. These extensions need cleaning up so that the deprecated functions can finally be removed from the MediaWiki core code!
You will have to look at the deprecated function in the MediaWiki Core code repository. It will have a "@deprecated since 1.XX use foobar" comment which tells you what to replace it with. You have to look up the correct use + parameters of the replacement. Note that the new function is likely not a direct replacement so you need to change more than just one single line. You could check for code in MediaWiki Core that has already been replaced, for examples how to use the new function.
Then you could search for "->getContent(" in the following repositories + provide patches in Gerrit (each repository requires a separate patch):
- mediawiki/extensions/LogEntry
- mediawiki/extensions/News
- mediawiki/extensions/PageSchemas
- mediawiki/extensions/PdfExport
- mediawiki/extensions/PollNY
- mediawiki/extensions/PrivateDomains
The commit message of your Gerrit patch(es) must have the line "Bug: T151973".