mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 16:10:55 +00:00
8ad57f9b0e
Changes: * Default skin is not configured so noticed on test runs it's using Default skin for desktop mode. Given this has no footer and way to switch to mobile this could be problematic in future. * Remove empty README * Drop suggested language integration test - setting up interwiki links currently happens via InterwikiLoadPrefix hook however this seems to be unreliable. The beta cluster is a much more reliable place to test language links so let's rely on that instead. * Drop unnecessary heading check from "Successful edit" scenario. It's unnecessary and flakey (presumably given the title doesn't change) * Rename test scenario and remove a duplicate scenario Depends-On: I888b3c546f77fa350853a7bf9bfbfbeb8ed6de67 Change-Id: I45792a95df7fd4c3299accbffadfa447baefe0ce
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
$wgRightsText = 'Creative Commons Attribution 3.0';
|
|
$wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/";
|
|
// Allow users to edit privacy link.
|
|
$wgGroupPermissions['user']['editinterface'] = true;
|
|
|
|
$wgHooks['InterwikiLoadPrefix'][] = function ( $prefix, &$iwdata ) {
|
|
if ( $prefix === 'es' ) {
|
|
// return our hardcoded interwiki info
|
|
$iwdata = [
|
|
'iw_url' => 'http://wikifoo.org/es/index.php/$1',
|
|
'iw_local' => 0,
|
|
'iw_trans' => 0,
|
|
];
|
|
return false;
|
|
}
|
|
// nothing to do, continue lookup
|
|
return true;
|
|
};
|
|
$wgInterwikiCache = false;
|
|
|
|
$wgMFEnableBeta = true;
|
|
|
|
// Set the desktop skin to MinervaNeue. Otherwise, it will try to guess the skin name using the
|
|
// class name MinervaNeue which resolves to `minervaneue`.
|
|
$wgDefaultSkin = 'minerva';
|
|
|
|
// needed for testing whether the language button is displayed and disabled
|
|
$wgMinervaAlwaysShowLanguageButton = true;
|
|
|
|
// For those who have wikibase installed.
|
|
$wgMFUseWikibase = true;
|
|
|
|
$wgMFDisplayWikibaseDescriptions = [
|
|
'search' => true,
|
|
'nearby' => true,
|
|
'watchlist' => true,
|
|
'tagline' => true,
|
|
];
|
|
|
|
$wgMinervaShowCategoriesButton['base'] = true;
|