From 811f9e0f663969fb1b022d3efaa90791fb97b2f4 Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 23 Mar 2011 11:19:34 +0000 Subject: [PATCH] cd variable for sites who want /ab/cb/abcd --- core/util.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/util.inc.php b/core/util.inc.php index 471af9bf..358dbeb0 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -502,6 +502,7 @@ function format_text($string) { function warehouse_path($base, $hash, $create=true) { $ab = substr($hash, 0, 2); + $cd = substr($hash, 2, 2); $pa = "$base/$ab/$hash"; if($create && !file_exists(dirname($pa))) mkdir(dirname($pa), 0755, true); return $pa;