Skip to content

Commit

Permalink
check twig_profile container
Browse files Browse the repository at this point in the history
  • Loading branch information
1f7 committed Apr 18, 2017
1 parent 3d3425e commit d042e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TwigRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct()
'debug' => ForumEnv::get('FEATHER_DEBUG'),
]);
// load extensions
if (ForumEnv::get('FEATHER_DEBUG')) {
if (ForumEnv::get('FEATHER_DEBUG') && Container::get('twig_profile')) {
$this->twig->addExtension(new \Twig_Extension_Profiler(
Container::get('twig_profile')
));
Expand Down

0 comments on commit d042e95

Please sign in to comment.