5bee765d9242d434f60c930b594fc1c1bbcf9e7e
Author: Mark Story
Date: 2009-01-05 22:14:49 -0500
diff --git a/controllers/components/toolbar.php b/controllers/components/toolbar.php
index c9c8d71..6c00c07 100644
--- a/controllers/components/toolbar.php
+++ b/controllers/components/toolbar.php
@@ -109,7 +109,8 @@ class ToolbarComponent extends Object {
$currentViewClass = $controller->view;
$this->_makeViewClass($currentViewClass);
$controller->view = 'DebugKit.Debug';
- if (!$this->RequestHandler->isAjax() && (!isset($controller->params['url']['ext']) || (isset($controller->params['url']['ext']) && $controller->params['url']['ext'] == 'html'))) {
+ $isHtml = (!isset($controller->params['url']['ext']) || (isset($controller->params['url']['ext']) && $controller->params['url']['ext'] == 'html'));
+ if (!$this->RequestHandler->isAjax() && $isHtml) {
$format = 'Html';
} else {
$format = 'FirePhp';
