Skip to content

Commit

Permalink
Forgot to include complete patch in last commit :(
Browse files Browse the repository at this point in the history
Note: It's not good to commit while watching tv
  • Loading branch information
lorenzo committed Jun 9, 2012
1 parent d13deb7 commit 2a90baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Utility/CakeTime.php
Expand Up @@ -949,10 +949,10 @@ public static function format($date, $format = null, $default = false, $timezone
$_time = is_numeric($time) ? false : self::fromString($date, $timezone);

if (is_numeric($_time) && $time === false) {
return self::i18nFormat($_time, $format, $invalid, $timezone);
return self::i18nFormat($_time, $format, $default, $timezone);
}
if ($time === false && $invalid !== false) {
return $invalid;
if ($time === false && $default !== false) {
return $default;
}
return date($date, $time);
}
Expand Down

0 comments on commit 2a90baa

Please sign in to comment.