diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php index 08b2f41f3eae5f19162957729d9c131b01c1fd3a..eac271c47dff61f2c5998c555b696db50f3ecd50 100644 --- a/htdocs/fichinter/fiche.php +++ b/htdocs/fichinter/fiche.php @@ -399,7 +399,7 @@ if ($_GET["id"]) if (file_exists($file)) { print "<tr $bc[0]><td>Ficheinter PDF</a></td>"; - print '<td><a href="'.DOL_URL_ROOT.'/document.php?modulepart=ficheinter&file='.urlencode($relativepath).'">'.$fichinter->ref.'.pdf</a></td>'; + print '<td><a href="'.DOL_URL_ROOT.'/document.php?modulepart=ficheinter&file='.urlencode($relativepath).'.pdf">'.$fichinter->ref.'.pdf</a></td>'; print '<td align="right">'.filesize($file). ' bytes</td>'; print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'</td></tr>'; } diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php index 6ccffb977f6efe459cd7440e6ede608e13647d5d..34df2091ccf353643f4e50f41d97997c800b21cd 100644 --- a/htdocs/fichinter/fichinter.class.php +++ b/htdocs/fichinter/fichinter.class.php @@ -202,7 +202,7 @@ class Fichinter { chmod($file, 0444); } - $filepdf = FICHEINTER_OUTPUTDIR . "/$this->ref/$this->ref.pdf"; + $filepdf = $conf->ficheinter->dir_output . "/$this->ref/$this->ref.pdf"; if (is_writeable($filepdf)) { chmod($filepdf, 0444);