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:
parent
4e7c424df2
commit
f724ad0838
1 changed files with 1 additions and 1 deletions
|
|
@ -3843,7 +3843,7 @@ class Parser
|
|||
|
||||
wfProfileIn($fname);
|
||||
|
||||
if ( $wgTitle ) {
|
||||
if ( $wgTitle && !( $wgTitle instanceof FakeTitle ) ) {
|
||||
$this->mTitle = $wgTitle;
|
||||
} else {
|
||||
$this->mTitle = Title::newFromText('msg');
|
||||
|
|
|
|||
Loading…
Reference in a new issue