svn: /web/php-bugs/trunk/www/ bug.php

From: Date: Wed, 17 Mar 2010 10:52:58 +0000
Subject: svn: /web/php-bugs/trunk/www/ bug.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-7620@lists.php.net to get a copy of this message
jani Wed, 17 Mar 2010 10:52:58 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=296312 Log: - Add changelog for submitter changes as well Changed paths: U web/php-bugs/trunk/www/bug.php Modified: web/php-bugs/trunk/www/bug.php =================================================================== --- web/php-bugs/trunk/www/bug.php 2010-03-17 08:57:33 UTC (rev 296311) +++ web/php-bugs/trunk/www/bug.php 2010-03-17 10:52:58 UTC (rev 296312) @@ -267,6 +267,17 @@ $from, )); + // Add changelog entry + $changed = bug_diff($bug, $_POST['in']); + if (!empty($changed)) { + $log_comment = bug_diff_render_html($changed); + + if (!empty($log_comment)) { + $res = bugs_add_comment($bug_id, $from, '', $log_comment, 'log'); + } + } + + // Add normal comment if (!empty($ncomment)) { $res = bugs_add_comment($bug_id, $from, '', $ncomment, 'comment'); }

« previous php.webmaster (#7620) next »