Skip to content

Commit

Permalink
Fix undeclared variable $difference (#1563)
Browse files Browse the repository at this point in the history
Fixes a bug when returning nicetime
  • Loading branch information
rdnt authored and rhukster committed Jul 7, 2017
1 parent f76d882 commit 01c7a36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/src/Grav/Common/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ public function nicetimeFilter($date, $long_strings = true)
$tense = $this->grav['language']->translate('NICETIME.AGO', null, true);

} else if ($now == $unix_date) {
$difference = $now - $unix_date;
$tense = $this->grav['language']->translate('NICETIME.JUST_NOW', null, false);

} else {
Expand Down

0 comments on commit 01c7a36

Please sign in to comment.