Removed dateToInt constrained for year
This commit is contained in:
@@ -29,8 +29,7 @@ class Layout extends mfLayout {
|
||||
$year = intval($m[3]);
|
||||
|
||||
if($day > 31 || $day < 1
|
||||
|| $month > 12 || $month < 1
|
||||
|| $year > date('Y')+1 || $year < date('Y'))
|
||||
|| $month > 12 || $month < 1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -43,4 +42,4 @@ class Layout extends mfLayout {
|
||||
public static function intToDate($int) {
|
||||
return date("d.m.Y", $int);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user