From aaeb9e1ef2dfc91e131c24e37befa6801e832cce Mon Sep 17 00:00:00 2001 From: ubc-tuehoang Date: Tue, 19 Sep 2023 12:57:58 -0700 Subject: [PATCH] updated extension --- Dockerfile | 6 +++++- LocalSettings.php | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66a5563..ec4b87b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -100,8 +100,12 @@ RUN EXTS=`curl https://extdist.wmflabs.org/dist/extensions/ | awk 'BEGIN { FS = # WARNING: if updating DynamicPageList3 from 3.5.1, check if fix below is still required \ && echo "Installing https://github.com/Universal-Omega/DynamicPageList3/archive/refs/tags/3.5.1.tar.gz" \ && mkdir -p /var/www/html/extensions/DynamicPageList \ - && curl -Ls https://github.com/Universal-Omega/DynamicPageList3/archive/refs/tags/3.5.1.tar.gz | tar xz --strip=1 -C /var/www/html/extensions/DynamicPageList + && curl -Ls https://github.com/Universal-Omega/DynamicPageList3/archive/refs/tags/3.5.1.tar.gz | tar xz --strip=1 -C /var/www/html/extensions/DynamicPageList \ ##Comment out to use with MW Extension method + && echo "Installing Lockdown-REL1_39-86d9ad6.tar.gz" \ + && mkdir /var/www/html/extensions/Lockdown \ + && curl -Ls https://extdist.wmflabs.org/dist/extensions/Lockdown-REL1_39-86d9ad6.tar.gz | tar xz --strip=1 -C /var/www/html/extensions/Lockdown + ##&& echo "Installing SmiteSpam https://github.com/wikimedia/mediawiki-extensions-SmiteSpam/archive/REL1_39.zip" \ ##&& curl -L -o smitespam.zip https://github.com/wikimedia/mediawiki-extensions-SmiteSpam/archive/REL1_39.zip \ ##&& unzip smitespam.zip -d /var/www/html/extensions/ \ diff --git a/LocalSettings.php b/LocalSettings.php index 15f54e7..09ab57b 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -733,14 +733,13 @@ function loadenv($envName, $default = "") { } -if (getenv('MEDIAWIKI_EXTENSIONS') && strpos(getenv('MEDIAWIKI_EXTENSIONS'), 'Lockdown') !== false) { wfLoadExtension( 'Lockdown' ); # Test Page Lockdown $wgSpecialPageLockdown['Export'] = [ 'user' ]; $wgActionLockdown['history'] = [ 'user' ]; -} +