|
|
@@ -73,6 +73,13 @@ class Zend_Validate_Date extends Zend_Validate_Abstract
|
|
|
public function __construct($format = null, $locale = null)
|
|
|
{
|
|
|
$this->setFormat($format);
|
|
|
+ if ($locale === null) {
|
|
|
+ require_once 'Zend/Registry.php';
|
|
|
+ if (Zend_Registry::isRegistered('Zend_Locale')) {
|
|
|
+ $locale = Zend_Registry::get('Zend_Locale');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if ($locale !== null) {
|
|
|
$this->setLocale($locale);
|
|
|
}
|