cvs: pearweb / package.php package.xml /include/election pear-election.php
| From: | Greg Beaver | Date: | Fri, 01 Dec 2006 21:19:08 +0000 |
| Subject: | cvs: pearweb / package.php package.xml /include/election pear-election.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5231@lists.php.net to get a copy of this message | ||
cellog Fri Dec 1 21:19:08 2006 UTC
Modified files:
/pearweb/include/election pear-election.php
/pearweb package.php package.xml
Log:
* fix Bug #9526: if date is next year, election interface won\'t
properly save new election
* change election range to allow 2-week long elections maximum
http://cvs.php.net/viewvc.cgi/pearweb/include/election/pear-election.php?r1=1.1&r2=1.2&diff_format=u
Index: pearweb/include/election/pear-election.php
diff -u pearweb/include/election/pear-election.php:1.1
pearweb/include/election/pear-election.php:1.2
--- pearweb/include/election/pear-election.php:1.1 Tue Nov 21 05:40:25 2006
+++ pearweb/include/election/pear-election.php Fri Dec 1 21:19:08 2006
@@ -128,6 +128,10 @@
$error[] = 'Month is invalid';
} elseif ($_POST['month'] < 1 || $_POST['month'] > 12) {
$error[] = 'Month is invalid, must be 1-12';
+ } else {
+ if ($_POST['month'] < 10) {
+ $_POST['month'] = '0' . $_POST['month'];
+ }
}
}
if (empty($_POST['day'])) {
@@ -139,6 +143,10 @@
$_POST['year'] . '-' . $_POST['month'] . '-01
+1 month -1 day'))) {
$error[] = 'Day is invalid, must be 1-' . date('d', strtotime(
$_POST['year'] . '-' . $_POST['month'] .
'-01 +1 month -1 day'));
+ } else {
+ if ($_POST['day'] < 10) {
+ $_POST['day'] = '0' . $_POST['day'];
+ }
}
}
$date = $_POST['year'] . '-' . $_POST['month'] .
'-' . $_POST['day'];
http://cvs.php.net/viewvc.cgi/pearweb/package.php?r1=1.35&r2=1.36&diff_format=u
Index: pearweb/package.php
diff -u pearweb/package.php:1.35 pearweb/package.php:1.36
--- pearweb/package.php:1.35 Wed Nov 29 04:22:17 2006
+++ pearweb/package.php Fri Dec 1 21:19:08 2006
@@ -35,6 +35,8 @@
* fix Bug #9405: add back button to info.php
* fix Bug #9476: schema validation error on postinstall script
* fix Bug #9483: registering for voter account "enter intended purpose"
+ * fix Bug #9526: if date is next year, election interface won\'t
+ properly save new election
* implement Request #7828: PEAR Bug Summary Report
* implement Request #9118: Added new feature to pepr
* completely rework account requests, both to simplify/clarify and to allow
http://cvs.php.net/viewvc.cgi/pearweb/package.xml?r1=1.65&r2=1.66&diff_format=u
Index: pearweb/package.xml
diff -u pearweb/package.xml:1.65 pearweb/package.xml:1.66
--- pearweb/package.xml:1.65 Wed Nov 29 04:41:05 2006
+++ pearweb/package.xml Fri Dec 1 21:19:08 2006
@@ -52,8 +52,8 @@
<email>dufuz@php.net</email>
<active>no</active>
</developer>
- <date>2006-11-28</date>
- <time>23:21:54</time>
+ <date>2006-12-01</date>
+ <time>16:06:34</time>
<version>
<release>1.0.0</release>
<api>0.1.1</api>
@@ -922,7 +922,7 @@
<release>stable</release>
<api>stable</api>
</stability>
- <date>2006-11-28</date>
+ <date>2006-12-01</date>
<license uri="http://www.php.net/license">PHP
License</license>
<notes>
* fix REST generation for deprecated packages/channels