forked from Wavyzz/dolibarr
Use dolChmod
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user