Commit 70ad2d1236bd1888014d91d564eb60f8484936a1

Authored by Kevin Fourie
1 parent 47053c5a

KTS-3549

"Failure on documentRoot creation"
Fixed. Added recursive flag.

Committed By: Kevin Fourie
Reviewed By: Megan Watson



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8952 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/storage/ondiskhashedstoragemanager.inc.php
@@ -162,9 +162,9 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { @@ -162,9 +162,9 @@ class KTOnDiskHashedStorageManager extends KTStorageManager {
162 $path = sprintf('%s/%s', $path, $sDirPart); 162 $path = sprintf('%s/%s', $path, $sDirPart);
163 $createPath = sprintf('%s%s', $sDocumentRoot, $path); 163 $createPath = sprintf('%s%s', $sDocumentRoot, $path);
164 if (!file_exists($createPath)) { 164 if (!file_exists($createPath)) {
165 - $res = @mkdir(sprintf('%s%s', $sDocumentRoot, $path)); 165 + $res = @mkdir($createPath, 0777, true);
166 if ($res === false) { 166 if ($res === false) {
167 - return PEAR::raiseError(_kt("Could not create directory for storage")); 167 + return PEAR::raiseError(_kt("Could not create directory for storage" .': ' . $createPath));
168 } 168 }
169 } 169 }
170 } 170 }