From: Happy-melon Date: Sat, 10 Apr 2010 16:44:10 +0000 (+0000) Subject: Follow-up to r64407 - a perfect example of why we encourage using braces for one... X-Git-Tag: 1.31.0-rc.0~37162 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=2de185e530ac20de9e2781b69005314ffabd55c0;p=lhc%2Fweb%2Fwiklou.git Follow-up to r64407 - a perfect example of why we encourage using braces for one-line conditionals in the first place. --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index c5b4ef6123..8a59b65bc0 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -933,9 +933,9 @@ class Parser { $flag = 0; } else { $flag = Parser::PTD_FOR_INCLUSION; + } $dom = $this->preprocessToDom( $text, $flag ); $text = $frame->expand( $dom ); - } } else { # if $frame is not provided, then use old-style replaceVariables $text = $this->replaceVariables( $text );