2
0
forked from Wavyzz/dolibarr

Use dolChmod

This commit is contained in:
Laurent Destailleur
2023-02-17 19:30:50 +01:00
parent d976372d87
commit 0b4cacd291
101 changed files with 247 additions and 428 deletions

View File

@@ -496,9 +496,7 @@ class doc_generic_order_odt extends ModelePDFCommandes
$parameters = array('odfHandler'=>&$odfHandler, 'file'=>$file, 'object'=>$object, 'outputlangs'=>$outputlangs, 'substitutionarray'=>&$tmparray);
$reshook = $hookmanager->executeHooks('afterODTCreation', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
if (!empty($conf->global->MAIN_UMASK)) {
@chmod($file, octdec($conf->global->MAIN_UMASK));
}
dolChmod($file);
$odfHandler = null; // Destroy object

View File

@@ -676,9 +676,7 @@ class pdf_einstein extends ModelePDFCommandes
$this->errors = $hookmanager->errors;
}
if (!empty($conf->global->MAIN_UMASK)) {
@chmod($file, octdec($conf->global->MAIN_UMASK));
}
dolChmod($file);
$this->result = array('fullpath'=>$file);

View File

@@ -900,9 +900,7 @@ class pdf_eratosthene extends ModelePDFCommandes
$this->errors = $hookmanager->errors;
}
if (!empty($conf->global->MAIN_UMASK)) {
@chmod($file, octdec($conf->global->MAIN_UMASK));
}
dolChmod($file);
$this->result = array('fullpath'=>$file);