creating of eg. the files-dir was only tried if the parent dir was writable, which failed if it does not yet exist

This commit is contained in:
Ralf Becker 2006-07-09 17:24:43 +00:00
parent 5fb740f401
commit 6b327c6c4f

View File

@ -64,7 +64,7 @@
*/ */
function check_dir($dir,&$msg,$check_in_docroot=false) function check_dir($dir,&$msg,$check_in_docroot=false)
{ {
if (!@is_dir($dir) && !(@is_writeable(dirname($dir)) && @mkdir($dir,0700,true))) if (!@is_dir($dir) && !@mkdir($dir,0700,true))
{ {
$msg = lang('does not exist'); $msg = lang('does not exist');
return false; return false;