mirror of
https://github.com/getgrav/grav.git
synced 2026-03-13 16:10:55 +01:00
Revert Add twig/extensions to allow Twig dates translation
Revert https://github.com/getgrav/grav/commit/810deb41056948896a90a51751dff6e44 f05de95
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user