Quick and dirty guard against a FakeTitle making its way into message transformation.

This could break job processing when a message using {{PAGENAME}} or similar got interpreted;
for instance using {{int:noarticeltext}}.

The message transformation uses $wgTitle, which is... probably not super.
Better fix might be to distinguish inline transformation in some nice way,
so the parser would use its own title object already set locally... or something.

ugh!
This commit is contained in:
Brion Vibber 2007-01-13 22:36:32 +00:00
parent 4e7c424df2
commit f724ad0838

View file

@ -3843,7 +3843,7 @@ class Parser
wfProfileIn($fname);
if ( $wgTitle ) {
if ( $wgTitle && !( $wgTitle instanceof FakeTitle ) ) {
$this->mTitle = $wgTitle;
} else {
$this->mTitle = Title::newFromText('msg');