From 5e141402e1c9be63090522ae957b911a2503deae Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Thu, 31 Mar 2011 13:05:20 +0200 Subject: [PATCH] [WebProfilerBundle] Fix the intercept_redirects option --- .../WebProfilerBundle/DependencyInjection/Configuration.php | 2 +- .../Bundle/WebProfilerBundle/WebDebugToolbarListener.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php index 3fdca4ce2c..ac1ef18bfd 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php @@ -37,7 +37,7 @@ class Configuration ->children() ->booleanNode('verbose')->defaultTrue()->end() ->booleanNode('toolbar')->defaultFalse()->end() - ->scalarNode('intercept_redirects')->defaultFalse()->end() + ->booleanNode('intercept_redirects')->defaultFalse()->end() ->end() ; diff --git a/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php b/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php index e3927e9aef..b94bee4098 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php +++ b/src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php @@ -37,7 +37,7 @@ class WebDebugToolbarListener public function __construct(TwigEngine $templating, $interceptRedirects = false, $verbose = true) { $this->templating = $templating; - $this->interceptRedirects = $interceptRedirects; + $this->interceptRedirects = (Boolean) $interceptRedirects; $this->verbose = (Boolean) $verbose; }