aboutsummaryrefslogtreecommitdiffstats
path: root/includes/resourceloader/ResourceLoaderFileModule.php
diff options
context:
space:
mode:
authorAmmarpad <ammarpad@yahoo.com>2021-08-08 14:30:16 +0100
committerAmmarpad <ammarpad@yahoo.com>2021-09-20 09:29:24 +0100
commit1cf4eab3ab410312e8130043a25362c50901eb65 (patch)
treed0e7ba3bf3e5a84c2de69b0dc434fa9232319c14 /includes/resourceloader/ResourceLoaderFileModule.php
parentbe6e658c67879915622e1402a3e1cd7d832c75ca (diff)
downloadmediawikicore-1cf4eab3ab410312e8130043a25362c50901eb65.tar.gz
mediawikicore-1cf4eab3ab410312e8130043a25362c50901eb65.zip
ApiParse: Support hidden skins
Since $wgSkipSkins is meant to only 'remove skin from preferences', it should not affect parsing with them. So these skins need to be allowed here. To achive this, this patch adds getInstalledSkins() method to SkinFactory to provide the complete. The method supersedes getSkinNames() which does the same thing but with ambiguous name. Description of getAllowedSkins() has been corrected as it was slightly incorrect. Bug: T237856 Change-Id: I0889b823d27f1a2830cc0205f5a21ed4de744e08
Diffstat (limited to 'includes/resourceloader/ResourceLoaderFileModule.php')
-rw-r--r--includes/resourceloader/ResourceLoaderFileModule.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php
index 74571d6099ee..7a2c0c105536 100644
--- a/includes/resourceloader/ResourceLoaderFileModule.php
+++ b/includes/resourceloader/ResourceLoaderFileModule.php
@@ -909,7 +909,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
$skinFactory = MediaWikiServices::getInstance()->getSkinFactory();
$styleFiles = [];
- $internalSkinNames = array_keys( $skinFactory->getSkinNames() );
+ $internalSkinNames = array_keys( $skinFactory->getInstalledSkins() );
$internalSkinNames[] = 'default';
foreach ( $internalSkinNames as $internalSkinName ) {