Author: fabien
Date: 2010-01-19 11:04:07 +0100 (Tue, 19 Jan 2010)
New Revision: 26866

Modified:
   branches/1.3/lib/validator/sfValidatorDate.class.php
   branches/1.4/lib/validator/sfValidatorDate.class.php
Log:
[1.3, 1.4] fixed sfValidatorDate errors (closes #8118)

Modified: branches/1.3/lib/validator/sfValidatorDate.class.php
===================================================================
--- branches/1.3/lib/validator/sfValidatorDate.class.php        2010-01-19 
09:56:54 UTC (rev 26865)
+++ branches/1.3/lib/validator/sfValidatorDate.class.php        2010-01-19 
10:04:07 UTC (rev 26866)
@@ -108,8 +108,8 @@
       // convert timestamp to date number format
       if (ctype_digit($max))
       {
+        $maxError = date($this->getOption('date_format_range_error'), $max);
         $max      = date('YmdHis', $max);
-        $maxError = date($this->getOption('date_format_range_error'), $max);
       }
       // convert string to date number
       else
@@ -131,8 +131,8 @@
       // convert timestamp to date number
       if (ctype_digit($min))
       {
+        $minError = date($this->getOption('date_format_range_error'), $min);
         $min      = date('YmdHis', $min);
-        $minError = date($this->getOption('date_format_range_error'), $min);
       }
       // convert string to date number
       else

Modified: branches/1.4/lib/validator/sfValidatorDate.class.php
===================================================================
--- branches/1.4/lib/validator/sfValidatorDate.class.php        2010-01-19 
09:56:54 UTC (rev 26865)
+++ branches/1.4/lib/validator/sfValidatorDate.class.php        2010-01-19 
10:04:07 UTC (rev 26866)
@@ -108,8 +108,8 @@
       // convert timestamp to date number format
       if (ctype_digit($max))
       {
+        $maxError = date($this->getOption('date_format_range_error'), $max);
         $max      = date('YmdHis', $max);
-        $maxError = date($this->getOption('date_format_range_error'), $max);
       }
       // convert string to date number
       else
@@ -131,8 +131,8 @@
       // convert timestamp to date number
       if (ctype_digit($min))
       {
+        $minError = date($this->getOption('date_format_range_error'), $min);
         $min      = date('YmdHis', $min);
-        $minError = date($this->getOption('date_format_range_error'), $min);
       }
       // convert string to date number
       else

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to