X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=470a75c4b9820878bf81b31b05de325960c2b1a6;hb=b225a84ff95badf1e407c3952e1e0c540507a8e8;hp=20142a784b6d605125f45f7303b46d2e00771eb5;hpb=47b93ded1388ce5712d0a816db4ddd3466609bcd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 20142a784b..470a75c4b9 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -1,4 +1,6 @@ makeConfig( 'main' ); + $config = MediaWikiServices::getInstance()->getMainConfig(); $secretKey = $config->get( 'SecretKey' ); if ( $secretKey ) { @@ -186,10 +188,10 @@ class TemplateParser { * @code * echo $templateParser->processTemplate( * 'ExampleTemplate', - * array( + * [ * 'username' => $user->getName(), * 'message' => 'Hello!' - * ) + * ] * ); * @endcode * @param string $templateName The name of the template