Fixing fatal error caused by Debugger not being loaded when viewing the default home page.

This commit is contained in:
mark_story 2010-12-27 00:06:07 -05:00
parent be963385dc
commit 3d966be1e8
2 changed files with 2 additions and 0 deletions

View file

@ -2,6 +2,7 @@
$output = "<h2>Sweet, \"" . Inflector::humanize($app) . "\" got Baked by CakePHP!</h2>\n"; $output = "<h2>Sweet, \"" . Inflector::humanize($app) . "\" got Baked by CakePHP!</h2>\n";
$output .=" $output .="
<?php <?php
App::import('Core', 'Debugger');
if (Configure::read() > 0): if (Configure::read() > 0):
Debugger::checkSecurityKeys(); Debugger::checkSecurityKeys();
endif; endif;

View file

@ -18,6 +18,7 @@
if (Configure::read() == 0): if (Configure::read() == 0):
throw new NotFoundException(); throw new NotFoundException();
endif; endif;
App::import('Core', 'Debugger');
?> ?>
<h2><?php echo __('Release Notes for CakePHP %s.', Configure::version()); ?></h2> <h2><?php echo __('Release Notes for CakePHP %s.', Configure::version()); ?></h2>
<a href="http://cakephp.org/changelogs/1.3.6"><?php __('Read the changelog'); ?> </a> <a href="http://cakephp.org/changelogs/1.3.6"><?php __('Read the changelog'); ?> </a>