diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-04-20 04:48:01 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-04-20 06:14:06 +0300 |
commit | 1b9d125d3edd8e510f31315ae727b2bea7c4de7b (patch) | |
tree | d5b3e3fc0d165babfc4cdc009cab55b49488e1f9 /scripts | |
parent | e51b32afe263b2da17baef81a87b1873166b042f (diff) |
Port some templates to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/generate-twig-cache | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/generate-twig-cache b/scripts/generate-twig-cache index 70e211093f..74cc014821 100644 --- a/scripts/generate-twig-cache +++ b/scripts/generate-twig-cache @@ -6,6 +6,7 @@ require_once 'libraries/vendor_config.php'; use PMA\libraries\twig\I18nExtension; use PMA\libraries\twig\UrlExtension; +use PMA\libraries\twig\UtilExtension; $tplDir = dirname(__FILE__) . '/../templates'; $tmpDir = dirname(__FILE__) . '/../' . CACHE_DIR . 'twig'; @@ -18,6 +19,7 @@ $twig = new Twig_Environment($loader, array( )); $twig->addExtension(new I18nExtension()); $twig->addExtension(new UrlExtension()); +$twig->addExtension(new UtilExtension()); // iterate over all templates foreach (new RecursiveIteratorIterator( |