X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=470a75c4b9820878bf81b31b05de325960c2b1a6;hb=9c5dae53155a950edb1e712bbda59fa8732fddd8;hp=20142a784b6d605125f45f7303b46d2e00771eb5;hpb=7f91193ef37d534949950c980416b5a921cd5d79;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