Skip to content

Commit

Permalink
Refactoring long check
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 6, 2009
1 parent f51640a commit 5bee765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/components/toolbar.php
Expand Up @@ -109,7 +109,8 @@ function startup(&$controller) {
$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';
Expand Down

0 comments on commit 5bee765

Please sign in to comment.