mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing param usage introduced in previous commit
This commit is contained in:
parent
a2c2902dd6
commit
d13deb7da2
1 changed files with 2 additions and 2 deletions
|
@ -970,8 +970,8 @@ class CakeTime {
|
|||
*/
|
||||
public static function i18nFormat($date, $format = null, $default = false, $timezone = null) {
|
||||
$date = self::fromString($date, $timezone);
|
||||
if ($date === false && $invalid !== false) {
|
||||
return $invalid;
|
||||
if ($date === false && $default !== false) {
|
||||
return $default;
|
||||
}
|
||||
if (empty($format)) {
|
||||
$format = '%x';
|
||||
|
|
Loading…
Reference in a new issue