cvs: pearweb /public_html/bugs bug.php

From: Date: Mon, 06 Feb 2006 00:41:04 +0000
Subject: cvs: pearweb /public_html/bugs bug.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-38013@lists.php.net to get a copy of this message
cellog Mon Feb 6 00:41:04 2006 UTC Modified files: /pearweb/public_html/bugs bug.php Log: this replacement should only be attempted with the trycvs reason http://cvs.php.net/viewcvs.cgi/pearweb/public_html/bugs/bug.php?r1=1.87&r2=1.88&diff_format=u Index: pearweb/public_html/bugs/bug.php diff -u pearweb/public_html/bugs/bug.php:1.87 pearweb/public_html/bugs/bug.php:1.88 --- pearweb/public_html/bugs/bug.php:1.87 Mon Feb 6 00:30:38 2006 +++ pearweb/public_html/bugs/bug.php Mon Feb 6 00:41:04 2006 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: bug.php,v 1.87 2006/02/06 00:30:38 cellog Exp $ + * @version $Id: bug.php,v 1.88 2006/02/06 00:41:04 cellog Exp $ */ /* @@ -261,21 +261,23 @@ require './include/resolve.inc'; $reason = $RESOLVE_REASONS[$_POST['in']['resolve']]['message']; // do a replacement on @cvs@ to the likely location of CVS for this package - switch ($bug['package_name']) { - case 'Documentation' : - case 'Web Site' : - case 'Bug System' : - case 'PEPr' : - $errors[] = 'Cannot use "try cvs" with ' . $bug['package_name']; - break; - case 'PEAR' : - $reason = str_replace('@cvs@', 'pear-core', $reason); - $ncomment = "$reason\n\n$ncomment"; - break; - default : - $reason = str_replace('@cvs@', 'pear/' . $bug['package_name'], $reason); - $ncomment = "$reason\n\n$ncomment"; - break; + if ($_POST['in']['resolve'] == 'trycvs') { + switch ($bug['package_name']) { + case 'Documentation' : + case 'Web Site' : + case 'Bug System' : + case 'PEPr' : + $errors[] = 'Cannot use "try cvs" with ' . $bug['package_name']; + break; + case 'PEAR' : + $reason = str_replace('@cvs@', 'pear-core', $reason); + $ncomment = "$reason\n\n$ncomment"; + break; + default : + $reason = str_replace('@cvs@', 'pear/' . $bug['package_name'], $reason); + $ncomment = "$reason\n\n$ncomment"; + break; + } } } }

« previous php.pear.cvs (#38013) next »