Add extensions

This commit is contained in:
Illya Marchenko 2022-12-09 13:44:17 +02:00
parent 7ef77117a4
commit 7547bc11df
3 changed files with 29 additions and 3 deletions

Binary file not shown.

Binary file not shown.

@ -177,6 +177,8 @@ $extensions = [
// "Disambiguator",
"OATHAuth",
// "EmbedVideo",
"UserFunctions",
"DynamicSidebar",
];
foreach($extensions as $extension){
$json_file = "$wgExtensionDirectory/$extension/extension.json";
@ -230,6 +232,33 @@ $wgEnableSidebarCache = true;
$wgCapitalLinks = true; // @todo http://192.168.0.60/wiki/Special:WantedPages
// Defautl user settings
$wgDefaultUserOptions['watchdefault'] = false;
// Sidebar
$wgEnableSidebarCache = false;
// Dynamic sidebar
$wgDynamicSidebarUseUserpages = true;
$wgDynamicSidebarUseGroups = true;
$wgDynamicSidebarUseCategories = true;
// User parser functions
$wgUFEnabledPersonalDataFunctions = [
'ip',
'nickname',
'realname',
'useremail',
'username',
];
$wgUFAllowedNamespaces = [
NS_MEDIAWIKI => true,
NS_MAIN => true,
NS_USER => true,
];
$wgPFEnableStringFunctions = true;
// $wgObjectCaches['redis'] = [
// 'class' => 'RedisBagOStuff',
// 'servers' => [ '127.0.0.1:6379' ],
@ -266,6 +295,3 @@ $wgCapitalLinks = true; // @todo http://192.168.0.60/wiki/Special:WantedPages
//$wgWhitelistRead = [
// "Main Page", "MediaWiki:Common.css", "MediaWiki:Common.js"
//];
// Defautl user settings
$wgDefaultUserOptions['watchdefault'] = false;