I removed my previous commit. We have to create a new branch for that.

This commit is contained in:
Nicolas Lœuillet
2014-07-10 13:17:04 +02:00
parent c710f977b2
commit 6400371ff9
6 changed files with 30 additions and 27 deletions

View File

@ -232,6 +232,14 @@ class Poche
$this->tpl = new Twig_Environment($loaderChain, $twigParams);
$this->tpl->addExtension(new Twig_Extensions_Extension_I18n());
# filter to display domain name of an url
$filter = new Twig_SimpleFilter('getDomain', 'Tools::getDomain');
$this->tpl->addFilter($filter);
# filter for reading time
$filter = new Twig_SimpleFilter('getReadingTime', 'Tools::getReadingTime');
$this->tpl->addFilter($filter);
}
public function createNewUser() {