cvs: pearweb / package.php package.xml /include/pepr pepr-emails.php pepr.php

From: Date: Sun, 18 Feb 2007 20:47:27 +0000
Subject: cvs: pearweb / package.php package.xml /include/pepr pepr-emails.php pepr.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5446@lists.php.net to get a copy of this message
cellog Sun Feb 18 20:47:27 2007 UTC Modified files: /pearweb package.php package.xml /pearweb/include/pepr pepr-emails.php pepr.php Log: * fix Bug #1467: Two E-mails are sent when the proposer comments on his own PEPr http://cvs.php.net/viewvc.cgi/pearweb/package.php?r1=1.85&r2=1.86&diff_format=u Index: pearweb/package.php diff -u pearweb/package.php:1.85 pearweb/package.php:1.86 --- pearweb/package.php:1.85 Sun Feb 18 03:50:25 2007 +++ pearweb/package.php Sun Feb 18 20:47:27 2007 @@ -20,6 +20,7 @@ $a->setAPIStability('stable'); $a->setNotes(' * implement initial roadmap support for packages +* fix Bug #1467: Two E-mails are sent when the proposer comments on his own PEPr * fix Bug #10115: if you don\'t maintain a bug, and are assigned, no update emails '); $a->resetUsesrole(); http://cvs.php.net/viewvc.cgi/pearweb/package.xml?r1=1.118&r2=1.119&diff_format=u Index: pearweb/package.xml diff -u pearweb/package.xml:1.118 pearweb/package.xml:1.119 --- pearweb/package.xml:1.118 Sun Feb 18 03:50:25 2007 +++ pearweb/package.xml Sun Feb 18 20:47:27 2007 @@ -52,8 +52,8 @@ <email>dufuz@php.net</email> <active>no</active> </developer> - <date>2007-02-17</date> - <time>21:50:34</time> + <date>2007-02-18</date> + <time>14:47:45</time> <version> <release>1.5.0</release> <api>0.1.1</api> @@ -65,6 +65,7 @@ <license uri="http://www.php.net/license">PHP License</license> <notes> * implement initial roadmap support for packages +* fix Bug #1467: Two E-mails are sent when the proposer comments on his own PEPr * fix Bug #10115: if you don&apos;t maintain a bug, and are assigned, no update emails </notes> <contents> @@ -1344,10 +1345,11 @@ <release>stable</release> <api>stable</api> </stability> - <date>2007-02-17</date> + <date>2007-02-18</date> <license uri="http://www.php.net/license">PHP License</license> <notes> * implement initial roadmap support for packages +* fix Bug #1467: Two E-mails are sent when the proposer comments on his own PEPr * fix Bug #10115: if you don&apos;t maintain a bug, and are assigned, no update emails </notes> </release> http://cvs.php.net/viewvc.cgi/pearweb/include/pepr/pepr-emails.php?r1=1.15&r2=1.16&diff_format=u Index: pearweb/include/pepr/pepr-emails.php diff -u pearweb/include/pepr/pepr-emails.php:1.15 pearweb/include/pepr/pepr-emails.php:1.16 --- pearweb/include/pepr/pepr-emails.php:1.15 Sun Aug 14 11:36:04 2005 +++ pearweb/include/pepr/pepr-emails.php Sun Feb 18 20:47:27 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ | Authors: Tobias Schlitt <toby@php.net> | +----------------------------------------------------------------------+ - $Id: pepr-emails.php,v 1.15 2005/08/14 11:36:04 toby Exp $ + $Id: pepr-emails.php,v 1.16 2007/02/18 20:47:27 cellog Exp $ */ $proposalEmailTexts = array( @@ -103,6 +103,7 @@ 'proposal_comment' => array( 'to' => array ( 'user' => '{email_pear_dev}, {actor_name} <{actor_email}>, {owner_name} {owner_email}', + 'owner' => '{email_pear_dev}, {owner_name} {owner_email}', 'admin' => '{email_pear_dev}, {actor_name} <{actor_email}>, {owner_name} {owner_email}' ), 'subject' => 'Comment on {pkg_category}::{pkg_name}', http://cvs.php.net/viewvc.cgi/pearweb/include/pepr/pepr.php?r1=1.69&r2=1.70&diff_format=u Index: pearweb/include/pepr/pepr.php diff -u pearweb/include/pepr/pepr.php:1.69 pearweb/include/pepr/pepr.php:1.70 --- pearweb/include/pepr/pepr.php:1.69 Sat Nov 4 01:44:50 2006 +++ pearweb/include/pepr/pepr.php Sun Feb 18 20:47:27 2007 @@ -22,7 +22,7 @@ * @author Daniel Convissor <danielc@php.net> * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: pepr.php,v 1.69 2006/11/04 01:44:50 cellog Exp $ + * @version $Id: pepr.php,v 1.70 2007/02/18 20:47:27 cellog Exp $ */ /**#@+ @@ -688,12 +688,16 @@ $proposal_url = "http://pear.php.net/pepr/pepr-proposal-show.php?id=".$this->id; $end_voting_time = (@$this->longened_date > 0) ? $this->longened_date + PROPOSAL_STATUS_VOTE_TIMELINE : @$this->vote_date + PROPOSAL_STATUS_VOTE_TIMELINE; - if (!isset($user_handle)) { - $email['to'] = $email['to']['pearweb']; - } else if ($karma->has($user_handle, "pear.pepr.admin")) { - $email['to'] = $email['to']['admin']; + if ($event == 'proposal_comment' && $user_handle == $this->user_handle) { + $email['to'] = $email['to']['owner']; } else { - $email['to'] = $email['to']['user']; + if (!isset($user_handle)) { + $email['to'] = $email['to']['pearweb']; + } else if ($karma->has($user_handle, "pear.pepr.admin")) { + $email['to'] = $email['to']['admin']; + } else { + $email['to'] = $email['to']['user']; + } } $email['subject'] = $prefix . $email['subject'];

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