SpecialGadgets: Replace deprecated SkinFactory::getSkinNames() call

Bug: T377521
Change-Id: I60f28e3d9399227b02592bd71e9fdfff7a0118ed
(cherry picked from commit 1d38fe185d)
This commit is contained in:
Reedy 2024-10-29 00:47:31 +00:00
parent 4a1abc8745
commit 5d93751994

View file

@ -281,7 +281,7 @@ class SpecialGadgets extends SpecialPage {
// Portion: Show required skins (optional) // Portion: Show required skins (optional)
$requiredSkins = $gadget->getRequiredSkins(); $requiredSkins = $gadget->getRequiredSkins();
$skins = []; $skins = [];
$validskins = $this->skinFactory->getSkinNames(); $validskins = $this->skinFactory->getInstalledSkins();
foreach ( $requiredSkins as $skinid ) { foreach ( $requiredSkins as $skinid ) {
if ( isset( $validskins[$skinid] ) ) { if ( isset( $validskins[$skinid] ) ) {
$skins[] = $this->msg( "skinname-$skinid" )->plain(); $skins[] = $this->msg( "skinname-$skinid" )->plain();