]> git.llucax.com Git - mecon/meconlib.git/blobdiff - HTML/php/QuickForm/mdate.php
(no commit message)
[mecon/meconlib.git] / HTML / php / QuickForm / mdate.php
index e3642865325a2f3ed6cbd4a8d6df4e3631e7a442..1c528bc67e717ccbd3b2476ec098cfc740276a6c 100644 (file)
@@ -116,8 +116,10 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
      * @access public
      * @return bool
      */
-    function validate($fecha)
+    function validate($nombre, $valor, $formato = '')
     {
-        return Validate::date($fecha, array('format' => '%Y-%m-%d'))
+        $tmp = $valor['F'].'-'.$valor['d'].'-'.$valor['Y'];
+        return Validate::date($tmp, array('format' => '%Y-%m-%d'));
     } // end func validate
+}
 ?>