diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php
index 08b2f41f3ea..eac271c47df 100644
--- a/htdocs/fichinter/fiche.php
+++ b/htdocs/fichinter/fiche.php
@@ -399,7 +399,7 @@ if ($_GET["id"])
if (file_exists($file))
{
print "
| Ficheinter PDF | ";
- print ''.$fichinter->ref.'.pdf | ';
+ print ''.$fichinter->ref.'.pdf | ';
print ''.filesize($file). ' bytes | ';
print ''.strftime("%d %b %Y %H:%M:%S",filemtime($file)).' |
';
}
diff --git a/htdocs/fichinter/fichinter.class.php b/htdocs/fichinter/fichinter.class.php
index 6ccffb977f6..34df2091ccf 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);