mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
cleanup
This commit is contained in:
parent
f4f4aa4a2a
commit
5324a8ca9c
4 changed files with 4 additions and 4 deletions
|
@ -306,7 +306,7 @@ $engine = 'File';
|
||||||
|
|
||||||
// In development mode, caches should expire quickly.
|
// In development mode, caches should expire quickly.
|
||||||
$duration = '+999 days';
|
$duration = '+999 days';
|
||||||
if (Configure::read('debug') >= 1) {
|
if (Configure::read('debug') > 0) {
|
||||||
$duration = '+10 seconds';
|
$duration = '+10 seconds';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
* @since CakePHP(tm) v 0.10.0.1076
|
* @since CakePHP(tm) v 0.10.0.1076
|
||||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||||
*/
|
*/
|
||||||
if (Configure::read('debug') == 0):
|
if (!Configure::read('debug')):
|
||||||
throw new NotFoundException();
|
throw new NotFoundException();
|
||||||
endif;
|
endif;
|
||||||
App::uses('Debugger', 'Utility');
|
App::uses('Debugger', 'Utility');
|
||||||
|
|
|
@ -116,7 +116,7 @@ class ExceptionRenderer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$isNotDebug = (Configure::read('debug') == 0);
|
$isNotDebug = !Configure::read('debug');
|
||||||
if ($isNotDebug && $method == '_cakeError') {
|
if ($isNotDebug && $method == '_cakeError') {
|
||||||
$method = 'error400';
|
$method = 'error400';
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<title><?php echo $page_title?></title>
|
<title><?php echo $page_title?></title>
|
||||||
<?php echo $this->Html->charset(); ?>
|
<?php echo $this->Html->charset(); ?>
|
||||||
|
|
||||||
<?php if (Configure::read('debug') == 0) { ?>
|
<?php if (!Configure::read('debug')) { ?>
|
||||||
<meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
|
<meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<style><!--
|
<style><!--
|
||||||
|
|
Loading…
Add table
Reference in a new issue