Browse Source

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

Hassan Khan 11 năm trước cách đây
mục cha
commit
b79477d65e
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      lib/pico.php

+ 0 - 1
lib/pico.php

@@ -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());