Skip to content

Commit

Permalink
Fix ResourceLoader SkinModule name
Browse files Browse the repository at this point in the history
Use MediaWiki\ResourceLoader\SkinModule instead of deprecated alias ResourceLoaderSkinModule

Fixes #134
  • Loading branch information
Kenny2github committed Feb 4, 2024
1 parent a19e32b commit 871eda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ScratchWikiSkinTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function execute() {
}
</style>
<?php
$logos = ResourceLoaderSkinModule::getAvailableLogos( $this->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;
Expand Down
2 changes: 1 addition & 1 deletion skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"ResourceModules": {
"skins.scratchwikiskin2": {
"class": "ResourceLoaderSkinModule",
"class": "MediaWiki\\ResourceLoader\\SkinModule",
"features": {
"content-links": true,
"content-media": true,
Expand Down

0 comments on commit 871eda8

Please sign in to comment.