X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=fd856bec321b656d6b9e58b6d47aea6e35d2b134;hb=c28707d371d51e1f0e23e6dec33c603512096ec0;hp=75494b1ed8eef2927ced9af5596895d87d67570c;hpb=ccc2925f920b360d0ddd8bf311c340355d243c04;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 75494b1ed8..fd856bec32 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -62,9 +62,9 @@ class TemplateParser { */ public function enableRecursivePartials( $enable ) { if ( $enable ) { - $this->compileFlags = $this->compileFlags | LightnCandy::FLAG_RUNTIMEPARTIAL; + $this->compileFlags |= LightnCandy::FLAG_RUNTIMEPARTIAL; } else { - $this->compileFlags = $this->compileFlags & ~LightnCandy::FLAG_RUNTIMEPARTIAL; + $this->compileFlags &= ~LightnCandy::FLAG_RUNTIMEPARTIAL; } } @@ -220,6 +220,6 @@ class TemplateParser { */ public function processTemplate( $templateName, $args, array $scopes = [] ) { $template = $this->getTemplate( $templateName ); - return call_user_func( $template, $args, $scopes ); + return $template( $args, $scopes ); } }