mirror of
https://github.com/getgrav/grav.git
synced 2026-07-19 20:31:50 +02:00
Fix undeclared variable $difference (#1563)
Fixes a bug when returning nicetime
This commit is contained in:
committed by
Andy Miller
parent
f76d8827eb
commit
01c7a36025
@@ -446,6 +446,7 @@ class TwigExtension extends \Twig_Extension
|
||||
$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 {
|
||||
|
||||
Reference in New Issue
Block a user