aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/template/twig/twig.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/template/twig/twig.php b/phpBB/includes/template/twig/twig.php
index 15e49df200..c894fb5567 100644
--- a/phpBB/includes/template/twig/twig.php
+++ b/phpBB/includes/template/twig/twig.php
@@ -126,7 +126,10 @@ class phpbb_template_twig implements phpbb_template
));
// Set enabled phpbb extensions
- $this->twig->set_phpbb_extensions($this->extension_manager->all_enabled());
+ if ($this->extension_manager)
+ {
+ $this->twig->set_phpbb_extensions($this->extension_manager->all_enabled());
+ }
// Clear previous cache files (while WIP)
// @todo remove