X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=3fa91fa7009a87231d7e5d971b419508eb68d013;hb=e2968926997d33a9faaf186e4c9db1743282e175;hp=e48a399db56f326b1b0e9ab013a9532713bdf5ee;hpb=dcf70dfbcd7d58570e42d50368c430bbe67c2f36;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index e48a399db5..3fa91fa700 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1738,7 +1738,7 @@ function wfEscapeWikiText( $text ) { $repl2[] = preg_quote( substr( $prot, 0, -1 ), '/' ); } } - $repl2 = $repl2 ? '/\b(' . join( '|', $repl2 ) . '):/i' : '/^(?!)/'; + $repl2 = $repl2 ? '/\b(' . implode( '|', $repl2 ) . '):/i' : '/^(?!)/'; } $text = substr( strtr( "\n$text", $repl ), 1 ); $text = preg_replace( $repl2, '$1:', $text );