From ee56b467dfe6305189423a7afbc159f1acb25174 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 28 May 2007 04:23:59 +0000 Subject: [PATCH] *use /s modifier for parseinline regexp,

tags were being left on some messages --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index d3d5b1fee1..578cdcf1c4 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -592,7 +592,7 @@ function wfMsgExt( $key, $options ) { } elseif ( in_array('parseinline', $options) ) { $string = $wgOut->parse( $string, true, true ); $m = array(); - if( preg_match( "~^

(.*)\n?

$~", $string, $m ) ) { + if( preg_match( '/^

(.*)\n?<\/p>$/s', $string, $m ) ) { $string = $m[1]; } } elseif ( in_array('parsemag', $options) ) { -- 2.20.1