Skip to content

Commit

Permalink
update files to support cake 2.2
Browse files Browse the repository at this point in the history
cherrypicked from 8a610f3 (1.5)
  • Loading branch information
rchavik committed Aug 11, 2012
1 parent 87ffcf8 commit 5c5fa86
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions Config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@
if (!Configure::read('Install.installed') || !Configure::read('Install.secured')) {
CakePlugin::load('Install', array('routes' => true));
}
Configure::write('Dispatcher.filters', array(
'AssetDispatcher',
'CacheDispatcher'
));
CakeLog::config('debug', array(
'engine' => 'FileLog',
'types' => array('notice', 'info', 'debug'),
'file' => 'debug',
));
CakeLog::config('error', array(
'engine' => 'FileLog',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));
2 changes: 1 addition & 1 deletion Config/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require APP . 'Config' . DS . 'croogo.php';
} else {
if (!defined('LOG_ERROR')) {
define('LOG_ERROR', 2);
define('LOG_ERROR', LOG_ERR);
}

Configure::write('Error', array(
Expand Down
2 changes: 1 addition & 1 deletion Config/croogo.php.install
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
* Defines the default error type when using the log() function. Used for
* differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
*/
define('LOG_ERROR', 2);
define('LOG_ERROR', LOG_ERR);

/**
* Session configuration.
Expand Down

0 comments on commit 5c5fa86

Please sign in to comment.