|
From: Benjamin C. <bc...@us...> - 2002-04-10 18:36:15
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv28759
Modified Files:
attachment.php
Log Message:
Bugfix with redirecting back to the bug
Index: attachment.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/attachment.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- attachment.php 9 Apr 2002 23:26:04 -0000 1.16
+++ attachment.php 10 Apr 2002 15:07:39 -0000 1.17
@@ -25,12 +25,12 @@
include 'include.php';
function del_attachment($attachid) {
- global $db;
+ global $db, $HTTP_SERVER_VARS;
if (list($filename, $mimetype) = grab_attachment($attachid)) {
$db->query("delete from ".TBL_ATTACHMENT." where attachment_id = $attachid");
unlink($filename);
- header("Location: bug.php?op=show&bugid=$attachid");
+ header("Location: {$HTTP_SERVER_VARS['HTTP_REFERER']}");
}
}
|