|
From: Benjamin C. <bc...@us...> - 2002-04-09 23:25:28
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv19535
Modified Files:
bug.php
Log Message:
Bug fixes with the attachment list
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- bug.php 6 Apr 2002 23:47:29 -0000 1.95
+++ bug.php 9 Apr 2002 23:25:25 -0000 1.96
@@ -555,16 +555,19 @@
$rs = $db->query("select * from ".TBL_ATTACHMENT." where bug_id = $bugid");
if ($rs->numRows()) {
while ($rs->fetchInto($att)) {
- if (@is_readable(INSTALL_PATH.'/'.ATTACHMENT_PATH."/{$row['project_id']}/$bugid-{$att['file_name']}")) {
+ if (@is_readable(ATTACHMENT_PATH."/{$row['project_id']}/$bugid-{$att['file_name']}")) {
$attachments[] = $att;
}
}
}
// Show the comments
- $t->assign('comments', $db->getAll('select comment_text, c.created_date, login'
- .' from '.TBL_COMMENT.' c, '.TBL_AUTH_USER
- ." where bug_id = $bugid and c.created_by = user_id order by c.created_date"));
+ $t->assign(array(
+ 'attachments' => $attachments,
+ 'comments' => $db->getAll('select comment_text, c.created_date, login'
+ .' from '.TBL_COMMENT.' c, '.TBL_AUTH_USER
+ ." where bug_id = $bugid and c.created_by = user_id order by c.created_date")
+ ));
$t->display('bugdisplay.html');
}
|