|
From: Benjamin C. <bc...@us...> - 2004-10-25 12:40:04
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4862 Modified Files: attachment.php Log Message: Some changes from Mufasa Index: attachment.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/attachment.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- attachment.php 25 Oct 2004 12:06:54 -0000 1.22 +++ attachment.php 25 Oct 2004 12:39:56 -0000 1.23 @@ -75,7 +75,7 @@ // Check the upload size. If the size was greater than the max in // php.ini, the file won't even be set and will fail at the check above if ($_FILES['attachment']['size'] > ATTACHMENT_MAX_SIZE) { - show_attachment_form($bugid, printf(translate("The file you specified is larger than %d bytes"), number_format(ATTACHMENT_MAX_SIZE))); + show_attachment_form($bugid, printf(translate("The file you specified is larger than %s bytes"), number_format(ATTACHMENT_MAX_SIZE))); return; } @@ -175,9 +175,11 @@ @readfile($filename); exit; } -} else { +} elseif (isset($_GET['bugid'])) { $perm->check('Editbug'); show_attachment_form($_GET['bugid']); +} else { + show_text(translate("You tried to post an attachment that is larger than the server's maximum upload file size.")); } ?> |