Update card.php

This commit is contained in:
BENKE Charlie 2016-12-10 12:28:52 +01:00 committed by GitHub
parent cbfb7df05e
commit ba8deb29c9

View File

@ -2086,7 +2086,7 @@ else
$ref = dol_sanitizeFileName($object->ref);
include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
$fileparams = dol_most_recent_file($conf->commande->dir_output . '/' . $ref, preg_quote($ref, '/').'[^\-]+');
$fileparams = dol_most_recent_file($conf->contrat->dir_output . '/' . $ref, preg_quote($ref, '/').'[^\-]+');
$file = $fileparams['fullname'];
// Define output language