From f724ad0838f92f6dfc9618c8729c7270db8d5997 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 13 Jan 2007 22:36:32 +0000 Subject: [PATCH] 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! --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 400ce4a4fa..32c3fc961f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3843,7 +3843,7 @@ class Parser wfProfileIn($fname); - if ( $wgTitle ) { + if ( $wgTitle && !( $wgTitle instanceof FakeTitle ) ) { $this->mTitle = $wgTitle; } else { $this->mTitle = Title::newFromText('msg'); -- 2.20.1