Clean setup of antivirus

This commit is contained in:
ldestailleur
2025-08-30 17:14:57 +02:00
parent aadaf44ec1
commit f729d33dcc
7 changed files with 93 additions and 69 deletions

View File

@@ -1385,7 +1385,7 @@ function dolCheckVirus($src_file, $dest_file = '')
return $reterrors;
}
if (getDolGlobalString('MAIN_ANTIVIRUS_COMMAND')) {
if (getDolGlobalString('MAIN_ANTIVIRUS_UPLOAD_ON')) {
if (!class_exists('AntiVir')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/antivir.class.php';
}