diff --git a/htdocs/document.php b/htdocs/document.php index 36087c4bfbd..853a9486564 100644 --- a/htdocs/document.php +++ b/htdocs/document.php @@ -210,7 +210,7 @@ if ($modulepart) { $accessallowed=1; } - $original_file=$conf->fournisseur->dir_output.'/facture/'.get_exdir(dirname($original_file),2,1).$original_file; + $original_file=$conf->fournisseur->dir_output.'/facture/'.$original_file; $sqlprotectagainstexternals = "SELECT fk_soc as fk_soc FROM ".MAIN_DB_PREFIX."facture_fourn WHERE facnumber='".$refname."' AND entity=".$conf->entity; }