From 871eda8399eeb08653ed74a5fe9a3aa06faa99dd Mon Sep 17 00:00:00 2001 From: AbyxDev Date: Sun, 4 Feb 2024 21:00:38 +0000 Subject: [PATCH] Fix ResourceLoader SkinModule name Use MediaWiki\ResourceLoader\SkinModule instead of deprecated alias ResourceLoaderSkinModule Fixes #134 --- ScratchWikiSkinTemplate.php | 2 +- skin.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ScratchWikiSkinTemplate.php b/ScratchWikiSkinTemplate.php index a1fb1bc..7fe6bbf 100644 --- a/ScratchWikiSkinTemplate.php +++ b/ScratchWikiSkinTemplate.php @@ -30,7 +30,7 @@ public function execute() { } getSkin()->getConfig() ); +$logos = MediaWiki\ResourceLoader\SkinModule::getAvailableLogos( $this->getSkin()->getConfig() ); $wordmark = $logos['wordmark']['src'] ?? $this->get('stylepath') . '/' . $this->getSkin()->stylename . '/resources/Scratch-logo-sm.png'; $wordmarkW = $logos['wordmark']['width'] ?? 76; $wordmarkH = $logos['wordmark']['height'] ?? 28; diff --git a/skin.json b/skin.json index 29aeb71..22789cf 100644 --- a/skin.json +++ b/skin.json @@ -29,7 +29,7 @@ }, "ResourceModules": { "skins.scratchwikiskin2": { - "class": "ResourceLoaderSkinModule", + "class": "MediaWiki\\ResourceLoader\\SkinModule", "features": { "content-links": true, "content-media": true,