mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-24 08:23:28 +00:00
Replace usage of deprecated PageProps::getInstance()
Bug: T289544 Change-Id: Ie30d3d2339ebf110a9827c3fa5cd604928abfd38
This commit is contained in:
parent
7e13212a7c
commit
73371eb33e
|
@ -126,9 +126,10 @@ class SearchResultProvideThumbnailHookHandler {
|
|||
}
|
||||
|
||||
public static function newFromGlobalState(): SearchResultProvideThumbnailHookHandler {
|
||||
$services = MediaWikiServices::getInstance();
|
||||
return new SearchResultProvideThumbnailHookHandler(
|
||||
PageProps::getInstance(),
|
||||
MediaWikiServices::getInstance()->getRepoGroup()
|
||||
$services->getPageProps(),
|
||||
$services->getRepoGroup()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue