From: Aaron Schulz Date: Wed, 1 Feb 2012 04:58:19 +0000 (+0000) Subject: Quick fix to getContainerHashLevels() comparison from r110435. X-Git-Tag: 1.31.0-rc.0~24982 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=d010928d5a76a75abf3fd8ef0234c823eca73f8a;p=lhc%2Fweb%2Fwiklou.git Quick fix to getContainerHashLevels() comparison from r110435. --- diff --git a/includes/filerepo/backend/FileBackend.php b/includes/filerepo/backend/FileBackend.php index eb9d4ae176..28c1db7ec0 100644 --- a/includes/filerepo/backend/FileBackend.php +++ b/includes/filerepo/backend/FileBackend.php @@ -1531,7 +1531,7 @@ abstract class FileBackendStore extends FileBackend { if ( isset( $this->shardViaHashLevels[$container] ) ) { $config = $this->shardViaHashLevels[$container]; $hashLevels = (int)$config['levels']; - if ( $hashLevels == 0 || $hashLevels == 2 ) { + if ( $hashLevels == 1 || $hashLevels == 2 ) { $hashBase = (int)$config['base']; if ( $hashBase == 16 || $hashBase == 36 ) { return array( $hashLevels, $hashBase, $config['repeat'] );