Make Skin::formatDebugHTML()'s formatting work when memory usage is greather that 10M
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 27 Nov 2011 16:20:13 +0000 (16:20 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 27 Nov 2011 16:20:13 +0000 (16:20 +0000)
includes/Skin.php

index 5d0f877..cae7878 100644 (file)
@@ -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 ) );
                                }