cvs: pearweb /include/bugs pear-bugs-utils.php

From: Date: Mon, 07 Apr 2008 19:20:20 +0000
Subject: cvs: pearweb /include/bugs pear-bugs-utils.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7452@lists.php.net to get a copy of this message
dufuz Mon Apr 7 19:20:20 2008 UTC Modified files: /pearweb/include/bugs pear-bugs-utils.php Log: Hopefully enough to send emails to the pear-bugs list too http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/pear-bugs-utils.php?r1=1.3&r2=1.4&diff_format=u Index: pearweb/include/bugs/pear-bugs-utils.php diff -u pearweb/include/bugs/pear-bugs-utils.php:1.3 pearweb/include/bugs/pear-bugs-utils.php:1.4 --- pearweb/include/bugs/pear-bugs-utils.php:1.3 Sat Apr 5 21:46:20 2008 +++ pearweb/include/bugs/pear-bugs-utils.php Mon Apr 7 19:20:20 2008 @@ -10,7 +10,7 @@ */ public function getPackageMail($package_name, $bug_id = false) { - global $bugEmail, $dbh; + global $dbh; switch ($package_name) { case 'Bug System': case 'PEPr': @@ -45,13 +45,19 @@ $to[] = $assigned; } } + + // Add the bug mailing list if any + if (PEARWEB_BUG_ML_EMAIL != '') { + $to[] = PEARWEB_BUG_ML_EMAIL; + } + $bcc = $dbh->getCol('SELECT email FROM bugdb_subscribe WHERE bug_id = ' . $bug_id); $bcc = array_diff($bcc, $to); $bcc = array_unique($bcc); - return array(implode(', ', $to), $bugEmail, implode(', ', $bcc)); + return array(implode(', ', $to), PEAR_QA_EMAIL, implode(', ', $bcc)); } - return array(implode(', ', $to), $bugEmail); + return array(implode(', ', $to), PEAR_QA_EMAIL); } /**

« previous php.pear.core (#7452) next »