<?php
+
use MediaWiki\MediaWikiServices;
/**
*/
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;
}
}
*/
public function processTemplate( $templateName, $args, array $scopes = [] ) {
$template = $this->getTemplate( $templateName );
- return call_user_func( $template, $args, $scopes );
+ return $template( $args, $scopes );
}
}