unbreak template parametrization
authorErik Moeller <erik@users.mediawiki.org>
Mon, 31 May 2004 21:50:12 +0000 (21:50 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Mon, 31 May 2004 21:50:12 +0000 (21:50 +0000)
includes/Parser.php

index 2dc092b..0368d25 100644 (file)
@@ -1231,7 +1231,7 @@ class Parser
                        $text = preg_replace_callback( "/(\\n?){{{([$titleChars]*?)}}}/", "wfArgSubstitution", $text );
                }
                # Template substitution
-               $regex = "/(\\n?){{([$nonBraceChars]*)(\\|*?|)}}/s";
+               $regex = "/(\\n?){{([$nonBraceChars]*)(\\|.*?|)}}/s";
                $text = preg_replace_callback( $regex, "wfBraceSubstitution", $text );
 
                array_pop( $this->mArgStack );