From e2d600aa8dcc00b316bb399dd6b6c1399616c06c Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Mon, 31 May 2004 12:12:18 +0000 Subject: [PATCH] Fix transclusion inside of tables. BUG #962494 --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 0b6d39df11..50f02685e6 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1231,7 +1231,7 @@ class Parser $text = preg_replace_callback( "/(\\n?){{{([$titleChars]*?)}}}/", "wfArgSubstitution", $text ); } # Template substitution - $regex = "/(\\n?){{([$titleChars]*)(\\|.*?|)}}/s"; + $regex = "/(\\n?){{([$nonBraceChars]*)(\\|*?|)}}/s"; $text = preg_replace_callback( $regex, "wfBraceSubstitution", $text ); array_pop( $this->mArgStack ); -- 2.20.1