diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-10 13:17:04 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-07-10 13:17:04 +0200 |
commit | 6400371ff93782d25cdbd50aa224c70145b3890a (patch) | |
tree | 93e09a9851eb04d55b6b77d209ea8c0331b88950 /inc/poche/Poche.class.php | |
parent | c710f977b2659e866aba0e6a436485649834f2c4 (diff) | |
download | wallabag-6400371ff93782d25cdbd50aa224c70145b3890a.tar.gz wallabag-6400371ff93782d25cdbd50aa224c70145b3890a.tar.zst wallabag-6400371ff93782d25cdbd50aa224c70145b3890a.zip |
I removed my previous commit. We have to create a new branch for that.
Diffstat (limited to 'inc/poche/Poche.class.php')
-rwxr-xr-x | inc/poche/Poche.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index e8c32024..09a9f5ff 100755 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -232,6 +232,14 @@ class Poche | |||
232 | 232 | ||
233 | $this->tpl = new Twig_Environment($loaderChain, $twigParams); | 233 | $this->tpl = new Twig_Environment($loaderChain, $twigParams); |
234 | $this->tpl->addExtension(new Twig_Extensions_Extension_I18n()); | 234 | $this->tpl->addExtension(new Twig_Extensions_Extension_I18n()); |
235 | |||
236 | # filter to display domain name of an url | ||
237 | $filter = new Twig_SimpleFilter('getDomain', 'Tools::getDomain'); | ||
238 | $this->tpl->addFilter($filter); | ||
239 | |||
240 | # filter for reading time | ||
241 | $filter = new Twig_SimpleFilter('getReadingTime', 'Tools::getReadingTime'); | ||
242 | $this->tpl->addFilter($filter); | ||
235 | } | 243 | } |
236 | 244 | ||
237 | public function createNewUser() { | 245 | public function createNewUser() { |