followup to r77843: fix off by one error
authorIlmari Karonen <vyznev@users.mediawiki.org>
Mon, 6 Dec 2010 00:36:54 +0000 (00:36 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Mon, 6 Dec 2010 00:36:54 +0000 (00:36 +0000)
includes/HTMLFileCache.php

index e167150..26cb147 100644 (file)
@@ -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 ) . '/';
                                }
                        }