From b5bea64195142e7e09eee8a2b8615cad80a44593 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 8803ecf9..e4c21e5d 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;