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

From: Date: Sun, 16 Mar 2008 15:17:45 +0000
Subject: cvs: pearweb /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7338@lists.php.net to get a copy of this message
dufuz Sun Mar 16 15:17:45 2008 UTC Modified files: /pearweb/public_html/bugs/include functions.inc Log: add a "I have no idea" option in the package dropdown for people not really knowing what version they are using of the package, comes up as "version Unkown" http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.168&r2=1.169&diff_format=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.168 pearweb/public_html/bugs/include/functions.inc:1.169 --- pearweb/public_html/bugs/include/functions.inc:1.168 Tue Feb 5 20:10:42 2008 +++ pearweb/public_html/bugs/include/functions.inc Sun Mar 16 15:17:45 2008 @@ -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: functions.inc,v 1.168 2008/02/05 20:10:42 dufuz Exp $ + * @version $Id: functions.inc,v 1.169 2008/03/16 15:17:45 dufuz Exp $ */ @@ -461,11 +461,15 @@ echo ' selected="selected"'; } - echo ' value = "' . htmlspecialchars($v[0]) . '">' . htmlspecialchars($v[0]) . ' (' . htmlspecialchars($v[1]) . ")</option>\n"; + $p = htmlspecialchars($v[0]); + echo ' value = "' . $p . '">' . $p . ' (' . htmlspecialchars($v[1]) . ")</option>\n"; } echo '<option value="CVS"'; - if ($current == 'CVS') echo ' selected'; + echo $current == 'CVS' ? ' selected' : ''; echo ">CVS</option>\n"; + echo '<option value="Unkown"'; + echo $current == 'Unknown' ? ' selected' : ''; + echo ">I have no idea</option>\n"; echo "<option value=\"earlier\"", ($current == "earlier" ? " selected" : ""), ">Earlier? Upgrade first!</option>\n"; echo "</select>\n"; } @@ -487,11 +491,9 @@ echo '<option'; if ($current == $v) { echo ' selected="selected"'; - } - echo '>' . htmlspecialchars($v) . "</option>\n"; - if ($current == $v) { $use++; } + echo '>' . htmlspecialchars($v) . "</option>\n"; } if (!$use && $current) { echo '<option selected="selected">' . htmlspecialchars($current) . "</option>\n";

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