Commit 96401a21a5ca1978247748fc4d0f2b9555e28b00
1 parent
2a59a889
Merged in from STABLE trunk...
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/STABLE/branches/3.5.3-Release-Branch@8954 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
lib/storage/ondiskhashedstoragemanager.inc.php
| ... | ... | @@ -162,9 +162,9 @@ class KTOnDiskHashedStorageManager extends KTStorageManager { |
| 162 | 162 | $path = sprintf('%s/%s', $path, $sDirPart); |
| 163 | 163 | $createPath = sprintf('%s%s', $sDocumentRoot, $path); |
| 164 | 164 | if (!file_exists($createPath)) { |
| 165 | - $res = @mkdir(sprintf('%s%s', $sDocumentRoot, $path)); | |
| 165 | + $res = @mkdir($createPath, 0777, true); | |
| 166 | 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 | } | ... | ... |