cvs: pearweb /public_html/bugs bug.php

From: Date: Tue, 26 Oct 2004 12:54:42 +0000
Subject: cvs: pearweb /public_html/bugs bug.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1148@lists.php.net to get a copy of this message
dufuz Tue Oct 26 08:54:42 2004 EDT Modified files: /pearweb/public_html/bugs bug.php Log: Redirect to PECL if it's a PECL bug. http://cvs.php.net/diff.php/pearweb/public_html/bugs/bug.php?r1=1.66&r2=1.67&ty=u Index: pearweb/public_html/bugs/bug.php diff -u pearweb/public_html/bugs/bug.php:1.66 pearweb/public_html/bugs/bug.php:1.67 --- pearweb/public_html/bugs/bug.php:1.66 Tue Oct 26 07:28:38 2004 +++ pearweb/public_html/bugs/bug.php Tue Oct 26 08:54:41 2004 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2004 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: bug.php,v 1.66 2004/10/26 11:28:38 dufuz Exp $ + * @version $Id: bug.php,v 1.67 2004/10/26 12:54:41 dufuz Exp $ */ /* @@ -87,10 +87,12 @@ SUM(reproduced) AS reproduced,SUM(tried) AS tried, SUM(sameos) AS sameos, SUM(samever) AS samever, AVG(score)+3 AS average,STD(score) AS deviation, - users.showemail, users.handle - FROM bugdb b LEFT JOIN bugdb_votes ON b.id=bug - LEFT JOIN users ON users.email = b.email - WHERE b.id='.(int)$id.' + users.showemail, users.handle, p.package_type + FROM bugdb b + LEFT JOIN bugdb_votes ON b.id = bug + LEFT JOIN users ON users.email = b.email + LEFT JOIN packages p ON b.package_name = p.name + WHERE b.id = '.(int)$id.' GROUP BY bug'; $bug =& $dbh->getRow($query, array(), DB_FETCHMODE_ASSOC); @@ -102,6 +104,13 @@ exit; } +# Redirect to PECL if it's a PECL bug +if (!empty($bug['package_type']) && $bug['package_type'] != $site) { + $site == 'pear' ? $redirect = 'pecl' : $redirect = 'pear'; + localRedirect('http://'.$redirect.'.php.net/bugs/bug.php?id='.$id); + exit(); +} + # Delete comment if ($edit == 1 && isset($delete_comment)) { $addon = '';

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