From: Ilmari Karonen Date: Mon, 6 Dec 2010 00:36:54 +0000 (+0000) Subject: followup to r77843: fix off by one error X-Git-Tag: 1.31.0-rc.0~33536 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=183ca22b6056fa5b49608c0999a0f7392db12841;p=lhc%2Fweb%2Fwiklou.git followup to r77843: fix off by one error --- diff --git a/includes/HTMLFileCache.php b/includes/HTMLFileCache.php index e1671509e7..26cb147dd9 100644 --- a/includes/HTMLFileCache.php +++ b/includes/HTMLFileCache.php @@ -46,7 +46,7 @@ class HTMLFileCache { $key = $this->mTitle->getPrefixedDbkey(); if ( $wgFileCacheDepth > 0 ) { $hash = md5( $key ); - for ( $i = 1; $i < $wgFileCacheDepth; $i++ ) { + for ( $i = 1; $i <= $wgFileCacheDepth; $i++ ) { $subdir .= substr( $hash, 0, $i ) . '/'; } }