aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/twig/twig.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-06-12 13:26:20 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-06-12 13:26:20 -0500
commitfa86f45f62b52a9eed63e9be5cde9dedf8ea1d0e (patch)
tree49f94f0889e4bffba0e85972473bd34f54326f09 /phpBB/includes/template/twig/twig.php
parent74f19830f332bde9c022394f7fba744b5245e535 (diff)
downloadforums-fa86f45f62b52a9eed63e9be5cde9dedf8ea1d0e.tar
forums-fa86f45f62b52a9eed63e9be5cde9dedf8ea1d0e.tar.gz
forums-fa86f45f62b52a9eed63e9be5cde9dedf8ea1d0e.tar.bz2
forums-fa86f45f62b52a9eed63e9be5cde9dedf8ea1d0e.tar.xz
forums-fa86f45f62b52a9eed63e9be5cde9dedf8ea1d0e.zip
[feature/twig] Use phpBB's resource locator to find templates
PHPBB3-11598
Diffstat (limited to 'phpBB/includes/template/twig/twig.php')
-rw-r--r--phpBB/includes/template/twig/twig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template/twig/twig.php b/phpBB/includes/template/twig/twig.php
index e12b62be63..77f96e85d0 100644
--- a/phpBB/includes/template/twig/twig.php
+++ b/phpBB/includes/template/twig/twig.php
@@ -107,7 +107,7 @@ class phpbb_template_twig implements phpbb_template
$this->context = $context;
$this->extension_manager = $extension_manager;
- $loader = new Twig_Loader_Filesystem($phpbb_root_path . 'styles/prosilver/template/');
+ $loader = new phpbb_template_twig_loader($phpbb_root_path . 'styles/prosilver/template/', $this->locator);
//$loader = new Twig_Loader_Filesystem($phpbb_root_path . 'adm/style/');
$this->twig = new Twig_Environment($loader, array(
'cache' => $phpbb_root_path . 'cache/twig/',