Index: trunk/extensions/Gadgets/Gadgets_body.php |
— | — | @@ -307,7 +307,7 @@ |
308 | 308 | $gadget->requiredRights = $params; |
309 | 309 | break; |
310 | 310 | case 'skins': |
311 | | - $gadget->requiredSkins = array_intersect( array_keys( Skin::getSkinNames() ), $params ); |
| 311 | + $gadget->requiredSkins = $params; |
312 | 312 | break; |
313 | 313 | case 'default': |
314 | 314 | $gadget->onByDefault = true; |
Index: trunk/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -129,8 +129,13 @@ |
130 | 130 | } |
131 | 131 | |
132 | 132 | $skins = array(); |
| 133 | + $validskins = Skin::getSkinNames(); |
133 | 134 | foreach ( $gadget->getRequiredSkins() as $skinid ) { |
134 | | - $skins[] = wfMessage( "skinname-$skinid" )->plain(); |
| 135 | + if ( isset( $validskins[$skinid] ) ) { |
| 136 | + $skins[] = wfMessage( "skinname-$skinid" )->plain(); |
| 137 | + } else { |
| 138 | + $skins[] = $skinid; |
| 139 | + } |
135 | 140 | } |
136 | 141 | if ( count( $skins ) ) { |
137 | 142 | $wgOut->addHTML( '<br />' . |