Miraheze will perform database maintenance on this wiki, from 17:15 UTC until approximately 17:30 UTC. During this time this wiki will be in read-only mode. Please save your edits before 17:10 UTC!
EOF;
return true;
}
}
*/
// Hook so that Terms of Service is included in footer
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink';
function lfTOSLink( $sk, &$tpl ) {
$tpl->set( 'termsofservice', $sk->footerLink( 'termsofservice', 'termsofservicepage' ) );
$tpl->data['footerlinks']['places'][] = 'termsofservice';
return true;
}
// Include other configuration files
require_once "/srv/mediawiki/config/Database.php";
require_once "/srv/mediawiki/config/GlobalLogging.php";
require_once "/srv/mediawiki/config/LocalExtensions.php";
require_once "/srv/mediawiki/config/MissingWiki.php";
require_once "/srv/mediawiki/config/Redis.php";
require_once "/srv/mediawiki/config/Sitenotice.php";
// per T3457 - Miraheze Commons
if ( $wgDBname !== 'commonswiki' && $wgMirahezeCommons ) {
$wgForeignFileRepos[] = [
'class' => 'ForeignDBViaLBRepo',
'name' => 'shared-commons',
'directory' => '/mnt/mediawiki-static/commonswiki',
'url' => 'https://static.miraheze.org/commonswiki',
'hashLevels' => $wgHashedSharedUploadDirectory ? 2 : 0,
'thumbScriptUrl' => false,
'transformVia404' => !$wgGenerateThumbnailOnParse,
'hasSharedCache' => false,
'fetchDescription' => true,
'descriptionCacheExpiry' => 86400 * 7,
'wiki' => 'commonswiki',
'descBaseUrl' => 'https://commonswiki.miraheze.org/wiki/File:',
];
}
// Servers accessible by non cache proxies should not have squid config enabled
if ( !preg_match( "/^mw[0-9]*/", wfHostname() ) ) {
$wgUseSquid = false;
}
// Define last to avoid all dependencies
require_once "/srv/mediawiki/config/LocalWiki.php";
// Define last - Extension message files for loading extensions
if ( !defined( 'MW_NO_EXTENSION_MESSAGES' ) ) {
require_once "/srv/mediawiki/config/ExtensionMessageFiles.php";
}