forked from extern/egroupware
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:
parent
5fb740f401
commit
6b327c6c4f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user