Fix transclusion inside of tables. BUG #962494
authorJens Frank <jeluf@users.mediawiki.org>
Mon, 31 May 2004 12:12:18 +0000 (12:12 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Mon, 31 May 2004 12:12:18 +0000 (12:12 +0000)
includes/Parser.php

index 0b6d39d..50f0268 100644 (file)
@@ -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 );