Parcourir la source

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

Hassan Khan il y a 11 ans
Parent
commit
b79477d65e
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  1. 0 1
      lib/pico.php

+ 0 - 1
lib/pico.php

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