cvs: pearweb /public_html/bugs bugtypes.inc /public_html/bugs/include functions.inc

From: Date: Wed, 30 Jun 2004 19:00:28 +0000
Subject: cvs: pearweb /public_html/bugs bugtypes.inc /public_html/bugs/include functions.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21327@lists.php.net to get a copy of this message
danielc Wed Jun 30 15:00:28 2004 EDT Removed files: /pearweb/public_html/bugs bugtypes.inc Modified files: /pearweb/public_html/bugs/include functions.inc Log: * Rename $items to $bug_items and move creation of such from bugtypes.inc to show_types() in include/functions.inc. http://cvs.php.net/diff.php/pearweb/public_html/bugs/include/functions.inc?r1=1.59&r2=1.60&ty=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.59 pearweb/public_html/bugs/include/functions.inc:1.60 --- pearweb/public_html/bugs/include/functions.inc:1.59 Wed Jun 30 02:15:05 2004 +++ pearweb/public_html/bugs/include/functions.inc Wed Jun 30 15:00:28 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: functions.inc,v 1.59 2004/06/30 06:15:05 danielc Exp $ + * @version $Id: functions.inc,v 1.60 2004/06/30 19:00:28 danielc Exp $ */ @@ -466,7 +466,21 @@ */ function show_types($current, $show_any, $default = '') { - include 'bugtypes.inc'; + static $bug_items; + + if (!isset($bug_items)) { + $bug_items = array(); + $bug_items['Web Site'] = 'Web Site'; + $bug_items['Bug System'] = '&nbsp;&nbsp;&nbsp;Bug System'; + $bug_items['PEPr'] = '&nbsp;&nbsp;&nbsp;PEPr'; + $bug_items['Documentation'] = 'Documentation'; + + $list = package::listAll(false); + foreach ($list as $name => $data) { + $bug_items[$name] = $name; + } + } + $use = 0; if (!$current && !$default && !$show_any) { @@ -477,7 +491,7 @@ $current = $default; } - while (list($key,$value) = each($items)) { + foreach ($bug_items as $key => $value) { if ($show_any == 1 || $key != 'Any') { echo "<option value=\"$key\""; if ((is_array($current) && in_array($key, $current)) ||

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