X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=4210a965baafbf7f43b89b1cea0d9e79dcc43b34;hb=1d9fd23ab3583788fb2e3ae8e641cf83b09ef8df;hp=2293dabbd97084e823403d9ed2e8689946f7ebb6;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 2293dabbd9..4210a965ba 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -46,7 +46,7 @@ class TemplateParser { protected $compileFlags = LightnCandy::FLAG_ERROR_EXCEPTION; /** - * @param string $templateDir + * @param string|null $templateDir * @param bool $forceRecompile */ public function __construct( $templateDir = null, $forceRecompile = false ) { @@ -67,7 +67,7 @@ class TemplateParser { } /** - * Constructs the location of the the source Mustache template + * Constructs the location of the source Mustache template * @param string $templateName The name of the template * @return string * @throws UnexpectedValueException If $templateName attempts upwards directory traversal @@ -209,8 +209,11 @@ class TemplateParser { * ); * @endcode * @param string $templateName The name of the template + * @param-taint $templateName exec_misc * @param mixed $args + * @param-taint $args none * @param array $scopes + * @param-taint $scopes none * @return string */ public function processTemplate( $templateName, $args, array $scopes = [] ) {