mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 02:00:57 +00:00
Stop using old deprecated SpecialPageFactory static functions
Bug: T245686 Change-Id: I7501a66b0649bb3d2a928999f63a08371e1856ff
This commit is contained in:
parent
d8b0cf747f
commit
6bef74693f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue