diff --git a/public_html/includes/class/class.LSattr_html_date.php b/public_html/includes/class/class.LSattr_html_date.php
index 7a9eecf6..a11dbefe 100644
--- a/public_html/includes/class/class.LSattr_html_date.php
+++ b/public_html/includes/class/class.LSattr_html_date.php
@@ -40,10 +40,8 @@ class LSattr_html_date extends LSattr_html {
*/
function addToForm (&$form,$idForm,$data=NULL) {
$element = parent::addToForm($form,$idForm,$data);
- $form -> addRule($this -> name, 'date', array('format' => $element -> getFormat()) );
+ $form -> addRule($this -> name, 'date', array('msg' => _('Invalid value'), 'params' => array('format' => $element -> getFormat())) );
return $element;
}
}
-
-?>