]> git.llucax.com Git - mecon/meconlib.git/commitdiff
(no commit message)
authorMartín Marrese <marrese@gmail.com>
Wed, 11 Jun 2003 16:32:39 +0000 (16:32 +0000)
committerMartín Marrese <marrese@gmail.com>
Wed, 11 Jun 2003 16:32:39 +0000 (16:32 +0000)
HTML/php/QuickForm/mdate.php

index 1c528bc67e717ccbd3b2476ec098cfc740276a6c..7f895379c8bc02f4bfa63e42d655879b23204c48 100644 (file)
@@ -116,10 +116,9 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
      * @access public
      * @return bool
      */
-    function validate($nombre, $valor, $formato = '')
+    function validate($valor, $nombre, $formato = '')
     {
-        $tmp = $valor['F'].'-'.$valor['d'].'-'.$valor['Y'];
-        return Validate::date($tmp, array('format' => '%Y-%m-%d'));
+        return Validate::date($valor['Y'].'-'.$valor['d'].'-'.$valor['F'], array('format' => '%Y-%m-%d'));
     } // end func validate
 }
 ?>