diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 1101560f509..d4458c381ea 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -127,12 +127,16 @@ if ($propalid > 0) clearstatcache(); + $errorlevel=error_reporting(); + error_reporting(0); $handle=opendir($upload_dir); + error_reporting($errorlevel); + + print ''; if ($handle) { - print '
'; - print ''; + print ''; print ''; print ''; print ''; @@ -162,14 +166,14 @@ if ($propalid > 0) print "\n"; } } - print '
'.$langs->trans('Document').''.$langs->trans('Size').''.$langs->trans('Date').'
'; - print '
'; closedir($handle); } else { - print '

'.$langs->trans('ErrorCantOpenDir').' '.$upload_dir.''; + print '

'.$langs->trans('ErrorCantOpenDir').' '.$upload_dir.'
'; } + print ' '; + print ''; } else { @@ -178,10 +182,10 @@ if ($propalid > 0) } else { - print 'Erreur'; + print $langs->trans("UnkownError"); } $db->close(); -llxFooter('Dernière modification $Date$ révision $Revision$'); +llxFooter('$Date$ - $Revision$'); ?>