From c0a70e15bafb366c37e21dad7380366a94035c72 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 27 Nov 2011 16:20:13 +0000 Subject: [PATCH] Make Skin::formatDebugHTML()'s formatting work when memory usage is greather that 10M --- includes/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index 5d0f877bec..cae787871e 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -538,7 +538,7 @@ abstract class Skin extends ContextSource { $pre = ''; if ( $wgDebugTimestamps ) { $matches = array(); - if ( preg_match( '/^(\d+\.\d+ \d+.\dM\s{2})/', $line, $matches ) ) { + if ( preg_match( '/^(\d+\.\d+ {1,3}\d+.\dM\s{2})/', $line, $matches ) ) { $pre = $matches[1]; $line = substr( $line, strlen( $pre ) ); } -- 2.20.1