From fcc445b2a76ca4d88f7088ebd19af048be987da0 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 21 May 2020 12:14:37 -0700 Subject: [PATCH] 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 --- roles/mediawiki/templates/LocalSettings.php.fp.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/mediawiki/templates/LocalSettings.php.fp.j2 b/roles/mediawiki/templates/LocalSettings.php.fp.j2 index a431fc478a..7734aac570 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");