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

From: Date: Sun, 03 Feb 2002 19:24:22 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8504@lists.php.net to get a copy of this message
goba Sun Feb 3 14:24:22 2002 EDT Modified files: /php-bugs-web/include functions.inc Log: a) Seems like people like this diff style update. Make the neccessery changes. b) Put short link to "see the rest of this bug report" text Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.14 php-bugs-web/include/functions.inc:1.15 --- php-bugs-web/include/functions.inc:1.14 Sun Feb 3 10:10:34 2002 +++ php-bugs-web/include/functions.inc Sun Feb 3 14:24:22 2002 @@ -149,21 +149,21 @@ $text = array(); $headers = array(); - $headers[] = array("ID", $bug['id']); + $headers[] = array(" ID", $bug['id']); switch ($edit) { case 3: - $headers[] = array("Comment by", rinse($in['email'])); + $headers[] = array(" Comment by", rinse($in['email'])); break; case 2: - $headers[] = array("User updated by", txfield('email')); + $headers[] = array(" User updated by", txfield('email')); break; default: - $headers[] = array("Updated by", $from); + $headers[] = array(" Updated by", $from); } if (changed('sdesc')) - $headers[] = array("Old Summary", $bug['sdesc']); + $headers[] = array("-Summary", $bug['sdesc']); $fields = array( 'email' => 'Reported By', @@ -175,12 +175,15 @@ ); foreach ($fields as $name => $desc) { - if (changed($name)) { - $headers[] = array("Old $desc", $bug[$name]); + $prefix = " "; + if (changed($name)) { + $headers[] = array("-$desc", $bug[$name]); + $prefix = "+"; } /* only fields that are set get added. */ - if ($f = txfield($name)) - $headers[] = array($desc, $f); + if ($f = txfield($name)) { + $headers[] = array($prefix.$desc, $f); + } } # make header output aligned @@ -196,7 +199,7 @@ } if ($ncomment) - $text[] = "New Comment:\n\n".stripslashes($ncomment); + $text[] = " New Comment:\n\n".stripslashes($ncomment); $text[] = get_old_comments($bug['id']); @@ -280,7 +283,7 @@ return ("\n\nPrevious Comments:\n$divider\n\n" . $output . "[$row[0]] $row[1]\n\n$row[2]\n\n$divider\n\n"); } else { - return ("\n\nPrevious Comments:\n$divider\n\n" . $output . "The remainder of the comments for this report are too long. To view\nthe rest of the comments, please view the bug report online at\n http://bugs.php.net/?id=$bug_id\n"); + return ("\n\nPrevious Comments:\n$divider\n\n" . $output . "The remainder of the comments for this report are too long. To view\nthe rest of the comments, please view the bug report online at\n http://bugs.php.net/$bug_id\n"); } return "";

« previous php.mirrors (#8504) next »