From: Alexandre Emsenhuber Date: Sun, 27 Nov 2011 16:20:13 +0000 (+0000) Subject: Make Skin::formatDebugHTML()'s formatting work when memory usage is greather that 10M X-Git-Tag: 1.31.0-rc.0~26271 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=c0a70e15bafb366c37e21dad7380366a94035c72;p=lhc%2Fweb%2Fwiklou.git Make Skin::formatDebugHTML()'s formatting work when memory usage is greather that 10M --- 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 ) ); }