Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -4460,7 +4460,10 @@ |
4461 | 4461 | |
4462 | 4462 | /** |
4463 | 4463 | * List of valid skin names. |
4464 | | - * The key should be the name in all lower case, the value should be a display name. |
| 4464 | + * The key should be the name in all lower case, the value should be a properly |
| 4465 | + * cased name for the skin. This value will be prefixed with "Skin" to create the |
| 4466 | + * class name of the skin to load, and if the skin's class cannot be found through |
| 4467 | + * the autoloader it will be used to load a .php file by that name in the skins directory. |
4465 | 4468 | * The default skins will be added later, by Skin::getSkinNames(). Use |
4466 | 4469 | * Skin::getSkinNames() as an accessor if you wish to have access to the full list. |
4467 | 4470 | */ |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -142,7 +142,7 @@ |
143 | 143 | |
144 | 144 | $skinNames = Skin::getSkinNames(); |
145 | 145 | $skinName = $skinNames[$key]; |
146 | | - $className = 'Skin' . ucfirst( $key ); |
| 146 | + $className = "Skin{$skinName}"; |
147 | 147 | |
148 | 148 | # Grab the skin class and initialise it. |
149 | 149 | if ( !class_exists( $className ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -23,6 +23,9 @@ |
24 | 24 | WantedPages::getQueryInfo . This may break older extensions. |
25 | 25 | * $wgUseCombinedLoginLink controls whether to output a combined login / create account |
26 | 26 | link in the personal bar, or to output separate login and create account links |
| 27 | +* Skin names are no longer created based on a ucfirst version of the key in $wgValidSkinNames but now |
| 28 | + the value. This means for $wgValidSkinNames["monobook"] = "MonoBook"; the skin |
| 29 | + loader will no longer try loading SkinMonobook and will instead load SkinMonoBook. |
27 | 30 | |
28 | 31 | === New features in 1.18 === |
29 | 32 | * Added a special page, disabled by default, that allows users with the |