cvs: php-bugs-web /include functions.inc

From: Date: Sat, 27 Jul 2002 11:18:56 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11578@lists.php.net to get a copy of this message
derick Sat Jul 27 07:18:56 2002 EDT Modified files: /php-bugs-web/include functions.inc Log: - Shorten status in subject Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.42 php-bugs-web/include/functions.inc:1.43 --- php-bugs-web/include/functions.inc:1.42 Fri Jul 26 19:03:23 2002 +++ php-bugs-web/include/functions.inc Sat Jul 27 07:18:55 2002 @@ -178,6 +178,20 @@ { $text = array(); $headers = array(); + + $tla = array( + 'Open' => 'Opn', + 'Bogus' => 'Bgs', + 'Feedback' => 'Fbk', + 'No Feedback' => 'NoF', + 'Won\'t fix' => 'WFx', + 'Duplicate' => 'Dup', + 'Critical' => 'Ctl', + 'Assigned' => 'Ass', + 'Analysed' => 'Ana', + 'Verified' => 'Ver', + 'Suspened' => 'Sus' + ); $headers[] = array(" ID", $bug['id']); @@ -261,11 +275,11 @@ if ($in[status] != $bug[status] || $ncomment != "") { if ($in[status] != $bug[status] && $edit != 3) { /* status changed */ - $subj = "#{$bug['id']} [{$bug['status']}->{$in['status']}]: "; + $subj = "#{$bug['id']} [{$tla[$bug['status']]}->{$tla[$in['status']]}]: "; } elseif ($edit == 3) { /* comment */ - $subj = "#{$bug['id']} [Comment]: "; + $subj = "#{$bug['id']} [Com]: "; } else { /* status did not change and not comment */ - $subj = "#{$bug['id']} [{$bug['status']}]: "; + $subj = "#{$bug['id']} [{$tla[$bug['status']]}]: "; } @mail($bug[email],

« previous php.mirrors (#11578) next »