r77846 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77845‎ | r77846 | r77847 >
Date:00:36, 6 December 2010
Author:vyznev
Status:ok
Tags:
Comment:
followup to r77843: fix off by one error
Modified paths:
  • /trunk/phase3/includes/HTMLFileCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/HTMLFileCache.php
@@ -46,7 +46,7 @@
4747 $key = $this->mTitle->getPrefixedDbkey();
4848 if ( $wgFileCacheDepth > 0 ) {
4949 $hash = md5( $key );
50 - for ( $i = 1; $i < $wgFileCacheDepth; $i++ ) {
 50+ for ( $i = 1; $i <= $wgFileCacheDepth; $i++ ) {
5151 $subdir .= substr( $hash, 0, $i ) . '/';
5252 }
5353 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77843Add new config variable $wgFileCacheDepth to set the depth of the subdirector...vyznev23:07, 5 December 2010

Status & tagging log