Stop using old deprecated SpecialPageFactory static functions

Bug: T245686
Change-Id: I7501a66b0649bb3d2a928999f63a08371e1856ff
This commit is contained in:
DannyS712 2020-02-19 23:14:27 +00:00
parent d8b0cf747f
commit 6bef74693f

View file

@ -41,7 +41,8 @@ class DiscussionToolsData {
// ApiQuerySiteinfo
$data['localTimezone'] = $config->get( 'Localtimezone' );
$data['specialContributionsName'] = SpecialPageFactory::getLocalNameFor( 'Contributions' );
$data['specialContributionsName'] = MediaWikiServices::getInstance()
->getSpecialPageFactory()->getLocalNameFor( 'Contributions' );
$localTimezone = $config->get( 'Localtimezone' );
// Return only timezone abbreviations for the local timezone (there will often be two, for