Skip to content

Commit

Permalink
updated extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tuehoang committed Sep 19, 2023
1 parent 46c7fbc commit aaeb9e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ \
Expand Down
3 changes: 1 addition & 2 deletions LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ];

}




Expand Down

0 comments on commit aaeb9e1

Please sign in to comment.