Follow-up to r64407 - a perfect example of why we encourage using braces for one...
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 10 Apr 2010 16:44:10 +0000 (16:44 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 10 Apr 2010 16:44:10 +0000 (16:44 +0000)
includes/parser/Parser.php

index c5b4ef6..8a59b65 100644 (file)
@@ -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 );