diff --git a/phpBB/phpbb/template/twig/loader.php b/phpBB/phpbb/template/twig/loader.php index 607dfcd078..474357b9d1 100644 --- a/phpBB/phpbb/template/twig/loader.php +++ b/phpBB/phpbb/template/twig/loader.php @@ -22,6 +22,16 @@ class loader extends \Twig_Loader_Filesystem { protected $safe_directories = array(); + /** + * Constructor + * + * @param string|array $paths + */ + public function __construct($paths = array()) + { + parent::__construct($paths, filesystem_helper::realpath(dirname(__FILE__))); + } + /** * Set safe directories *