write actions using the API.
* Added $wgRC2UDPInterwikiPrefix which adds an interwiki prefix
($wgLocalInterwiki) onto the page names in the UDP feed.
+* Added $wgAllowUserSkin to let the wiki's owner disable user selectable skins
+ on the wiki. If it's set to true, then the skin used will *always* be
+ $wgDefaultSkin.
=== Migrated extensions ===
The following extensions are migrated into MediaWiki 1.14:
/** See list of skins and their symbolic names in languages/Language.php */
$wgDefaultSkin = 'monobook';
+/** Should we allow the user's to select their own skin that will override the default? */
+$wgAllowUserSkin = true;
+
/**
* Optionally, we can specify a stylesheet to use for media="handheld".
* This is recognized by some, but not all, handheld/mobile/PDA browsers.
* @todo FIXME : need to check the old failback system [AV]
*/
function &getSkin() {
- global $wgRequest;
+ global $wgRequest, $wgAllowUserSkin, $wgDefaultSkin;
if ( ! isset( $this->mSkin ) ) {
wfProfileIn( __METHOD__ );
- # get the user skin
- $userSkin = $this->getOption( 'skin' );
+ if( $wgAllowUserSkin ) {
+ # get the user skin
+ $userSkin = $this->getOption( 'skin' );
+ } else {
+ # if we're not allowing users to override, then use the default
+ $userSkin = $wgDefaultSkin;
+ }
+
+ # we'll allow skin "testing" regardless of the AllowUserSkin option
$userSkin = $wgRequest->getVal('useskin', $userSkin);
$this->mSkin =& Skin::newFromKey( $userSkin );