When using Composer's autoloader, you don't need to use Twig's internal one.

This commit is contained in:
Hassan Khan 2013-10-31 01:26:03 +00:00
parent 7d79d536f4
commit b79477d65e

View file

@ -82,7 +82,6 @@ class Pico {
// Load the theme
$this->run_hooks('before_twig_register');
Twig_Autoloader::register();
$loader = new Twig_Loader_Filesystem(THEMES_DIR . $settings['theme']);
$twig = new Twig_Environment($loader, $settings['twig_config']);
$twig->addExtension(new Twig_Extension_Debug());