X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplateParser.php;h=75494b1ed8eef2927ced9af5596895d87d67570c;hb=f17c29762468ec194476d1399339c3ff59f2e786;hp=4210a965baafbf7f43b89b1cea0d9e79dcc43b34;hpb=af2758ff69773e95c81aa03877641c467e5cea29;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 4210a965ba..75494b1ed8 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -41,9 +41,7 @@ class TemplateParser { /** * @var int Compilation flags passed to LightnCandy */ - // Do not add more flags here without discussion. - // If you do add more flags, be sure to update unit tests as well. - protected $compileFlags = LightnCandy::FLAG_ERROR_EXCEPTION; + protected $compileFlags; /** * @param string|null $templateDir @@ -52,6 +50,10 @@ class TemplateParser { public function __construct( $templateDir = null, $forceRecompile = false ) { $this->templateDir = $templateDir ?: __DIR__ . '/templates'; $this->forceRecompile = $forceRecompile; + + // Do not add more flags here without discussion. + // If you do add more flags, be sure to update unit tests as well. + $this->compileFlags = LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_MUSTACHELOOKUP; } /**