Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Revert "Update Twig.php"
Browse files Browse the repository at this point in the history
This reverts commit 81fc43f.
  • Loading branch information
ArnaudLigny committed Jul 24, 2018
1 parent b8fcc6e commit 4afb7a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Renderer/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public function __construct($templatesPath, $config)
// add extensions
$this->twig->addExtension(new \Twig_Extension_Debug());
$this->twig->addExtension(new TwigExtension($config->getOutputPath()));
$this->twig->getExtension('Twig_Extension_Core')->setDateFormat($config->get('site.date.format'));
$this->twig->getExtension('Twig_Extension_Core')->setTimezone($config->get('site.date.timezone'));
$this->twig->getExtension('core')->setDateFormat($config->get('site.date.format'));
$this->twig->getExtension('core')->setTimezone($config->get('site.date.timezone'));

$this->fs = new Filesystem();
}
Expand Down

0 comments on commit 4afb7a0

Please sign in to comment.