aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/extension/core.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-11-22 12:33:45 +0100
committerTristan Darricau <github@nicofuma.fr>2014-11-22 12:33:45 +0100
commit6850169095f099d8fd9f3886e60237134c77ddb4 (patch)
treeb5634b85767175b9963c2acdb0d0876ebec548de /phpBB/phpbb/di/extension/core.php
parent0a49dad1123abe87590f5f40be0d3ad0fa97ea38 (diff)
downloadforums-6850169095f099d8fd9f3886e60237134c77ddb4.tar
forums-6850169095f099d8fd9f3886e60237134c77ddb4.tar.gz
forums-6850169095f099d8fd9f3886e60237134c77ddb4.tar.bz2
forums-6850169095f099d8fd9f3886e60237134c77ddb4.tar.xz
forums-6850169095f099d8fd9f3886e60237134c77ddb4.zip
[ticket/13266] Enable the debug extension in the development environment
PHPBB3-13266
Diffstat (limited to 'phpBB/phpbb/di/extension/core.php')
-rw-r--r--phpBB/phpbb/di/extension/core.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/phpbb/di/extension/core.php b/phpBB/phpbb/di/extension/core.php
index 72d46fb05b..451efc8e35 100644
--- a/phpBB/phpbb/di/extension/core.php
+++ b/phpBB/phpbb/di/extension/core.php
@@ -67,6 +67,12 @@ class core extends Extension
);
}
}
+
+ if ($config['twig']['enable_debug_extension'])
+ {
+ $definition = $container->getDefinition('template.twig.extensions.debug');
+ $definition->addTag('twig.extension');
+ }
}
/**