]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/HTML/QuickForm/mdate.php
BugFixes a la primera version de addMenuVertical de Marco
[mecon/meconlib.git] / lib / MECON / HTML / QuickForm / mdate.php
index f0886f9ddebb56840e894ad141ce95726f650d01..6e47cb7b06fed72ef973119bb0132b16e2b88655 100644 (file)
@@ -25,8 +25,6 @@
 // $Rev$
 //
 
-
-
 require_once 'HTML/QuickForm/date.php';
 require_once 'Date.php';
 require_once 'Validate.php';
@@ -60,7 +58,9 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
                                 )
                         );
                         
-        parent::HTML_QuickForm_date($elementName, $elementLabel, $options, $attributes);
+        parent::HTML_QuickForm_date($elementName, $elementLabel,
+            array_merge(array('language'=>'es','format'=>'d F Y'), $options),
+            $attributes);
     } //end constructor
 
     // }}}
@@ -99,7 +99,7 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
      */
     function &getValue()
     {
-        if ($this->_selectedDate['Y'] != 00) {
+        if ($this->_selectedDate['Y']) {
             return new Date (sprintf("%04d-%02d-%02d 00:00:00",$this->_selectedDate['Y'],$this->_selectedDate['F'],$this->_selectedDate['d']));
         } 
         else {