From 045fab6f49d861c986d734dc336d1f994d6eec0b Mon Sep 17 00:00:00 2001 From: John Hsu Date: Wed, 28 Feb 2024 10:22:47 -0800 Subject: [PATCH] ADD turn on Extension:Nuke By request, turn on the Nuke extension which allows for mass deletes. This extension is built-in since mediawiki 1.18, so we don't need to install it separately, just need to turn it on. --- LocalSettings.php | 4 +++- docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/LocalSettings.php b/LocalSettings.php index 8730417..841b1f9 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -730,7 +730,9 @@ function loadenv($envName, $default = "") { } - +if (getenv('MEDIAWIKI_EXTENSIONS') && strpos(getenv('MEDIAWIKI_EXTENSIONS'), 'Nuke') !== false) { + wfLoadExtension( 'Nuke' ); +} @include('/conf/CustomSettings.php'); diff --git a/docker-compose.yml b/docker-compose.yml index c7893ca..4152d18 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: - MEDIAWIKI_DB_PASSWORD=password # uncomment 'MEDIAWIKI_ENABLE_SSL' to enable SSL support # - MEDIAWIKI_ENABLE_SSL=true - - MEDIAWIKI_EXTENSIONS=SmiteSpam,VisualEditor,WikiEditor,ParserFunctions,Cite,TemplateData,Scribunto,InputBox,Widgets,Maps,Math,LiquidThreads,Variables,RightFunctions,PageInCat,CategoryTree,LabeledSectionTransclusion,UserPageEditProtection,Quiz,UploadWizard,Collection,DynamicPageList,EmbedPage,UWUBCMessages,googleAnalytics,Renameuser,caliper,DeleteBatch,LinkTarget,HitCounters,GTag,3D,TimedMediaHandler + - MEDIAWIKI_EXTENSIONS=SmiteSpam,VisualEditor,WikiEditor,ParserFunctions,Cite,TemplateData,Scribunto,InputBox,Widgets,Maps,Math,LiquidThreads,Variables,RightFunctions,PageInCat,CategoryTree,LabeledSectionTransclusion,UserPageEditProtection,Quiz,UploadWizard,Collection,DynamicPageList,EmbedPage,UWUBCMessages,googleAnalytics,Renameuser,caliper,DeleteBatch,LinkTarget,HitCounters,GTag,3D,TimedMediaHandler,Nuke - MEDIAWIKI_ALLOW_SITE_CSS_ON_RESTRICTED_PAGES=true # Add a logo to the wiki, can be relative paths to uploaded wiki images # Note: ICON (required) used by newer themes, LEGACY (optional) by older