From 31d8fb32f517e3c9993acd5b25830609203355de Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 5 Mar 2018 19:32:34 +0300 Subject: [PATCH] fix zero level --- src/File.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/File.php b/src/File.php index 0643308..36cd213 100644 --- a/src/File.php +++ b/src/File.php @@ -139,13 +139,14 @@ private function getLevelFolders($is_cache = false, $ds = null) $dir3 = ceil($this->id / 1000000) * 1000000; $url = $ds; - + if($level === 1) $url .= $dir1 . $ds; elseif($level === 2) $url .= $dir2 . $ds . $dir1 . $ds; - else + elseif($level === 3) $url .= $dir3 . $ds . $dir2 . $ds . $dir1 . $ds; + return $url; }