Fix undeclared variable $difference (#1563)

Fixes a bug when returning nicetime
This commit is contained in:
Tasos Papalyras
2017-07-07 09:21:41 +03:00
committed by Andy Miller
parent f76d8827eb
commit 01c7a36025

View File

@@ -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 {