r104342 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104341‎ | r104342 | r104343 >
Date:16:20, 27 November 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Make Skin::formatDebugHTML()'s formatting work when memory usage is greather that 10M
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -538,7 +538,7 @@
539539 $pre = '';
540540 if ( $wgDebugTimestamps ) {
541541 $matches = array();
542 - if ( preg_match( '/^(\d+\.\d+ \d+.\dM\s{2})/', $line, $matches ) ) {
 542+ if ( preg_match( '/^(\d+\.\d+ {1,3}\d+.\dM\s{2})/', $line, $matches ) ) {
543543 $pre = $matches[1];
544544 $line = substr( $line, strlen( $pre ) );
545545 }

Comments

#Comment by Hashar (talk | contribs)   22:51, 28 November 2011

Equal or greater than 100Mb (a new digit is added)

Status & tagging log