From fcc445b2a76ca4d88f7088ebd19af048be987da0 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: May 21 2020 19:28:36 +0000 Subject: mediawiki: enable string functions from ParserFunctions The ParserFunctions extension (which we already use) has some string functions which I would like to use, but they aren't enabled by default. Per the documentation, just adding this config setting should turn them on. Signed-off-by: Adam Williamson --- diff --git a/roles/mediawiki/templates/LocalSettings.php.fp.j2 b/roles/mediawiki/templates/LocalSettings.php.fp.j2 index a431fc4..7734aac 100644 --- a/roles/mediawiki/templates/LocalSettings.php.fp.j2 +++ b/roles/mediawiki/templates/LocalSettings.php.fp.j2 @@ -312,6 +312,10 @@ wfLoadExtension( 'Interwiki' ); wfLoadExtension( 'Cite' ); wfLoadExtension( 'ConfirmEdit' ); +# enable string functions from ParserFunctions: +# https://www.mediawiki.org/wiki/Extension:ParserFunctions +$wgPFEnableStringFunctions = true; + $wgShowExceptionDetails = true; $wgSkipSkins = array("chick", "cologneblue", "monobook", "myskin", "nostalgia", "simple", "standard");