Fixed nicetime() twig function

This commit is contained in:
Matias Griese
2018-09-07 10:36:56 +03:00
parent 41b7aadbda
commit 732ff8ecab
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -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']),