diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f1199115..0cc49fcf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ 1. [](#bugfix) * Allow `$page->slug()` to be called before `$page->init()` without breaking the page * Fix for `Page::translatedLanguages()` to use routes always [#2163](https://github.com/getgrav/grav/issues/2163) + * Fixed `nicetime()` twig function # v1.5.1 ## 08/23/2018 diff --git a/system/src/Grav/Common/Twig/TwigExtension.php b/system/src/Grav/Common/Twig/TwigExtension.php index 74253d739..2de622bf0 100644 --- a/system/src/Grav/Common/Twig/TwigExtension.php +++ b/system/src/Grav/Common/Twig/TwigExtension.php @@ -155,7 +155,7 @@ class TwigExtension extends \Twig_Extension implements \Twig_Extension_GlobalsIn new \Twig_SimpleFunction('read_file', [$this, 'readFileFunc']), new \Twig_SimpleFunction('nicenumber', [$this, 'niceNumberFunc']), new \Twig_SimpleFunction('nicefilesize', [$this, 'niceFilesizeFunc']), - new \Twig_SimpleFunction('nicetime', [$this, 'nicetimeFilter']), + new \Twig_SimpleFunction('nicetime', [$this, 'nicetimeFunc']), // Translations new \Twig_simpleFunction('t', [$this, 'translate']),