bugfix creating domains directory
This commit is contained in:
parent
841e78c955
commit
e76558c808
|
@ -935,7 +935,6 @@ class m_dom {
|
||||||
if ($db->f('create_tmpdir')) {
|
if ($db->f('create_tmpdir')) {
|
||||||
if (! is_dir($dest_root . "/tmp")) {
|
if (! is_dir($dest_root . "/tmp")) {
|
||||||
if(!mkdir($dest_root . "/tmp")){
|
if(!mkdir($dest_root . "/tmp")){
|
||||||
printvar("je viens de tenter de mkdir ++$dest_root/tmp++"); // FIXME Bullshit. Safemode à la con ?
|
|
||||||
$err->raise("dom",_("I can't write to the destination folder"));
|
$err->raise("dom",_("I can't write to the destination folder"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -943,10 +942,11 @@ printvar("je viens de tenter de mkdir ++$dest_root/tmp++"); // FIXME Bullshit. S
|
||||||
if ($db->f('create_targetdir')) {
|
if ($db->f('create_targetdir')) {
|
||||||
$dirr=$dest_root.$dest;
|
$dirr=$dest_root.$dest;
|
||||||
if (! is_dir($dirr)) {
|
if (! is_dir($dirr)) {
|
||||||
if(!mkdir($dirr,null,1)){
|
$old = umask(0);
|
||||||
printvar("je viens de tenter de mkdir ++$dirr++"); // FIXME Bullshit. Safemode à la con ?
|
if(!mkdir($dirr,0777,true)){
|
||||||
$err->raise("dom",_("I can't write to the destination folder"));
|
$err->raise("dom",_("I can't write to the destination folder"));
|
||||||
}
|
}
|
||||||
|
umask($old);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue