cvs: php-bugs-web /include functions.inc

From: Date: Sun, 05 Jun 2005 05:26:31 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-28341@lists.php.net to get a copy of this message
dufuz Sun Jun 5 01:26:31 2005 EDT Modified files: /php-bugs-web/include functions.inc Log: Website, Doc, LiveDoc and System operation bugs don't need PHP version as per request #33247 #Added the Irrelevant choice which only works with above mentioned categories. http://cvs.php.net/diff.php/php-bugs-web/include/functions.inc?r1=1.155&r2=1.156&ty=u Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.155 php-bugs-web/include/functions.inc:1.156 --- php-bugs-web/include/functions.inc:1.155 Fri Apr 22 09:17:37 2005 +++ php-bugs-web/include/functions.inc Sun Jun 5 01:26:30 2005 @@ -133,7 +133,16 @@ function show_version_options($current,$default="") { - $versions = array("4.3.11", "4.3.10", "4.3.9", "4CVS-".date("Y-m-d")." (stable)", "5.0.4", "5.0.3", "5CVS-".date("Y-m-d")." (dev)"); + $versions = array( + "4.3.11", + "4.3.10", + "4.3.9", + "4CVS-".date("Y-m-d")." (stable)", + "5.0.4", + "5.0.3", + "5CVS-".date("Y-m-d")." (dev)", + "Irrelevant", + ); echo "<option value=\"\">--Please Select--</option>\n"; while (list(,$v) = each($versions)) { echo "<option", ($current == $v ? " selected" : ""), ">$v</option>\n"; @@ -477,10 +486,14 @@ $errors[] = "Please select a valid PHP version. If your PHP version is too old, please upgrade first and see if the problem has not already been fixed."; } - if (empty($in['php_version'])) { + if (empty($in['php_version']) && !is_phpversion_irrelevant($in['bug_type'])) { $errors[] = "Please select a valid PHP version."; } + if ($in['php_version'] == 'Irrelevant' && !is_phpversion_irrelevant($in['bug_type'])) { + $errors[] = "This category requires you to pick a PHP version."; + } + if (empty($in['sdesc'])) { $errors[] = "You must supply a short description of the bug you are reporting."; }

« previous php.mirrors (#28341) next »