Replace usage of deprecated PageProps::getInstance()

Bug: T289544
Change-Id: Ie30d3d2339ebf110a9827c3fa5cd604928abfd38
This commit is contained in:
Alexander Vorwerk 2021-09-26 14:07:06 +02:00
parent 7e13212a7c
commit 73371eb33e

View file

@ -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()
);
}