forked from Wavyzz/dolibarr
FIX output dir
This commit is contained in:
@@ -263,18 +263,18 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
||||
*/
|
||||
|
||||
//if (count($realpatharray) == 0) $this->posxpicture=$this->posxtva;
|
||||
|
||||
if (getMultidirOutput($object)) {
|
||||
$dir_output = getMultidirOutput($object, $object->module) . '/' . $object->element;
|
||||
if ($dir_output) {
|
||||
$object->fetch_thirdparty();
|
||||
|
||||
$dir = null;
|
||||
// Definition of $dir and $file
|
||||
if ($object->specimen) {
|
||||
$dir = getMultidirOutput($object);
|
||||
$dir = $dir_output;
|
||||
$file = $dir."/SPECIMEN.pdf";
|
||||
} else {
|
||||
$objectref = dol_sanitizeFileName($object->ref);
|
||||
$dir = getMultidirOutput($object)."/".$objectref;
|
||||
$dir = $dir_output."/".$objectref;
|
||||
$file = $dir."/".$objectref.".pdf";
|
||||
}
|
||||
if ($dir === null) {
|
||||
@@ -837,7 +837,7 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Return list of active generation modules
|
||||
* Return list of active generation models
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @param int<0,max> $maxfilenamelength Max length of value to show
|
||||
|
||||
Reference in New Issue
Block a user