Skip to content

Commit

Permalink
Change cfLoad to wfLoad in generated sample files (#287)
Browse files Browse the repository at this point in the history
Should have been done a long time ago.

Also improve some of the explanatory comments around that code.
  • Loading branch information
yaronkoren authored Sep 5, 2023
1 parent 08105ce commit 750af99
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -661,16 +661,16 @@ RUN set -x; \
cd $MW_HOME \
&& find . \( -name ".git" -o -name ".gitignore" -o -name ".gitmodules" -o -name ".gitattributes" \) -exec rm -rf -- {} +

# Generate list of installed extensions
# Generate sample files for installing extensions and skins in LocalSettings.php
RUN set -x; \
cd $MW_HOME/extensions \
&& for i in $(ls -d */); do echo "#cfLoadExtension('${i%%/}');"; done > $MW_ORIGIN_FILES/installedExtensions.txt \
# Dirty hack for SemanticMediawiki
&& sed -i "s/#cfLoadExtension('SemanticMediaWiki');/#enableSemantics('localhost');/g" $MW_ORIGIN_FILES/installedExtensions.txt \
&& for i in $(ls -d */); do echo "#wfLoadExtension('${i%%/}');"; done > $MW_ORIGIN_FILES/installedExtensions.txt \
# Dirty hack for Semantic MediaWiki
&& sed -i "s/#wfLoadExtension('SemanticMediaWiki');/#enableSemantics('localhost');/g" $MW_ORIGIN_FILES/installedExtensions.txt \
&& cd $MW_HOME/skins \
&& for i in $(ls -d */); do echo "#cfLoadSkin('${i%%/}');"; done > $MW_ORIGIN_FILES/installedSkins.txt \
#Loads Vector skin by default in the LocalSettings.php
&& sed -i "s/#cfLoadSkin('Vector');/cfLoadSkin('Vector');/" $MW_ORIGIN_FILES/installedSkins.txt
&& for i in $(ls -d */); do echo "#wfLoadSkin('${i%%/}');"; done > $MW_ORIGIN_FILES/installedSkins.txt \
# Load Vector skin by default in the sample file
&& sed -i "s/#wfLoadSkin('Vector');/wfLoadSkin('Vector');/" $MW_ORIGIN_FILES/installedSkins.txt

# Move files around
RUN set -x; \
Expand Down

0 comments on commit 750af99

Please sign in to comment.