Attempt to fix translatewiki bug 32057
authorPlatonides <platonides@users.mediawiki.org>
Tue, 8 Nov 2011 20:58:57 +0000 (20:58 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Tue, 8 Nov 2011 20:58:57 +0000 (20:58 +0000)
The different Preprocessor::newChild expect false (with strict comparison) if there's no title passed to them.

includes/parser/Parser.php

index d333862..4030d08 100644 (file)
@@ -3034,7 +3034,7 @@ class Parser {
                $isLocalObj = false;        # $text is a DOM node needing expansion in the current frame
 
                # Title object, where $text came from
-               $title = null;
+               $title = false;
 
                # $part1 is the bit before the first |, and must contain only title characters.
                # Various prefixes will be stripped from it later.