Skip to content

Commit

Permalink
Fix failing test from merge with 2.3
Browse files Browse the repository at this point in the history
Fix a failed test from bad merge and remove nested conditions.
  • Loading branch information
markstory committed Aug 12, 2013
1 parent 26769ed commit 1c17018
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Cake/Utility/CakeTime.php
Expand Up @@ -917,11 +917,10 @@ public static function timeAgoInWords($dateTime, $options = array()) {
);

// When time has passed
if (!$backwards && $relativeDate) {
return sprintf($relativeString, $relativeDate);
}
if (!$backwards) {
if ($relativeDate) {
return __d('cake', '%s ago', $relativeDate);
}

return $aboutAgo[$fWord];
}

Expand Down

0 comments on commit 1c17018

Please sign in to comment.