Revert Add twig/extensions to allow Twig dates translation

Revert
https://github.com/getgrav/grav/commit/810deb41056948896a90a51751dff6e44
f05de95
This commit is contained in:
Flavio Copes
2016-04-22 18:33:45 +02:00
parent fc5302f334
commit ecf51536b9
2 changed files with 1 additions and 9 deletions

View File

@@ -26,8 +26,7 @@
"maximebf/debugbar": "~1.10",
"ext-mbstring": "*",
"ext-openssl": "*",
"ext-curl": "*",
"twig/extensions": "^1.3"
"ext-curl": "*"
},
"require-dev": {
"codeception/codeception": "^2.1",

View File

@@ -151,13 +151,6 @@ class Twig
}
$this->twig->addExtension(new TwigExtension());
// enable the Intl Twig extension if translations are enabled
if (count($config->get('system.languages.supported', [])) > 0) {
if (class_exists('\Twig_Extensions_Extension_Intl')) {
$this->twig->addExtension(new \Twig_Extensions_Extension_Intl());
}
}
$this->grav->fireEvent('onTwigExtensions');
// Set some standard variables for twig