svn: /web/php-bugs/trunk/include/ functions.php
| From: | Felipe Pena | Date: | Fri, 25 Mar 2011 01:51:13 +0000 |
| Subject: | svn: /web/php-bugs/trunk/include/ functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10738@lists.php.net to get a copy of this message | ||
felipe Fri, 25 Mar 2011 01:51:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309680
Log:
- Translate [YN] value in Yes/No for mail message
Changed paths:
U web/php-bugs/trunk/include/functions.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2011-03-25 01:25:13 UTC (rev 309679)
+++ web/php-bugs/trunk/include/functions.php 2011-03-25 01:51:13 UTC (rev 309680)
@@ -789,6 +789,10 @@
$to = trim($in[$name]);
$from = trim($bug[$name]);
if ($from != $to) {
+ if (in_array($name, array('private', 'block_user_comment'))) {
+ $from = $from == 'Y' ? 'Yes' : 'No';
+ $to = $to == 'Y' ? 'Yes' : 'No';
+ }
$changed[$name]['from'] = $from;
$changed[$name]['to'] = $to;
}