From eee21d728f349cbda8970732622f00e6d5610ef1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Wed, 11 Jun 2003 16:32:39 +0000 Subject: [PATCH] --- HTML/php/QuickForm/mdate.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/HTML/php/QuickForm/mdate.php b/HTML/php/QuickForm/mdate.php index 1c528bc..7f89537 100644 --- a/HTML/php/QuickForm/mdate.php +++ b/HTML/php/QuickForm/mdate.php @@ -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 } ?> -- 2.43.0