From 183ca22b6056fa5b49608c0999a0f7392db12841 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Mon, 6 Dec 2010 00:36:54 +0000 Subject: [PATCH] followup to r77843: fix off by one error --- includes/HTMLFileCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) . '/'; } } -- 2.20.1