Clean code
This commit is contained in:
parent
1b1e4e188e
commit
b70c6faef2
@ -17,6 +17,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parent class for supplier invoices models
|
* Parent class for supplier invoices models
|
||||||
*/
|
*/
|
||||||
@ -85,8 +87,9 @@ abstract class ModelePDFSuppliersPayments extends CommonDocGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class ModeleNumRefSupplierPayments
|
* ModeleNumRefSupplierPayments
|
||||||
* \brief Payment numbering references mother class
|
*
|
||||||
|
* Payment numbering references mother class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
abstract class ModeleNumRefSupplierPayments
|
abstract class ModeleNumRefSupplierPayments
|
||||||
|
|||||||
@ -282,7 +282,7 @@ if ($action == 'download') {
|
|||||||
|
|
||||||
$newsection = $section;
|
$newsection = $section;
|
||||||
|
|
||||||
$result = dol_ftp_get($connect_id, $localfile, $file, $newsection);
|
$result = dol_ftp_get($conn_id, $localfile, $file, $newsection);
|
||||||
|
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -306,9 +306,9 @@ if ($action == 'download') {
|
|||||||
header('Content-Type: '.$type);
|
header('Content-Type: '.$type);
|
||||||
}
|
}
|
||||||
if ($attachment) {
|
if ($attachment) {
|
||||||
header('Content-Disposition: attachment; filename="'.$filename.'"');
|
header('Content-Disposition: attachment; filename="'.$file.'"');
|
||||||
} else {
|
} else {
|
||||||
header('Content-Disposition: inline; filename="'.$filename.'"');
|
header('Content-Disposition: inline; filename="'.$file.'"');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ajout directives pour resoudre bug IE
|
// Ajout directives pour resoudre bug IE
|
||||||
@ -319,7 +319,7 @@ if ($action == 'download') {
|
|||||||
|
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
setEventMessages($langs->transnoentitiesnoconv('FailedToGetFile', $remotefile), null, 'errors');
|
setEventMessages($langs->transnoentitiesnoconv('FailedToGetFile', $file), null, 'errors');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
dol_print_error('', $mesg);
|
dol_print_error('', $mesg);
|
||||||
|
|||||||
@ -119,7 +119,7 @@ if (empty($conf->global->MAIN_REMOVE_INSTALL_WARNING)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Conf files must be in read only mode
|
// Conf files must be in read only mode
|
||||||
if (is_writable($conffile)) {
|
if (is_writable($conffile)) { // $conffile is defined into filefunc.inc.php
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
//$langs->load("other");
|
//$langs->load("other");
|
||||||
//if (!empty($message)) $message.='<br>';
|
//if (!empty($message)) $message.='<br>';
|
||||||
|
|||||||
@ -73,6 +73,7 @@ exclude:
|
|||||||
- name: RegExpSingleCharAlternation
|
- name: RegExpSingleCharAlternation
|
||||||
- name: PhpSuspiciousNameCombinationInspection
|
- name: PhpSuspiciousNameCombinationInspection
|
||||||
- name: PhpObjectFieldsAreOnlyWrittenInspection
|
- name: PhpObjectFieldsAreOnlyWrittenInspection
|
||||||
|
- name: PhpMissingParentConstructorInspection
|
||||||
- name: PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection
|
- name: PhpWriteAccessToReferencedArrayValueWithoutUnsetInspection
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user