mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
"Fixes #3625, LOG_ERROR undefined"
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6220 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d7b0a5865b
commit
7890c1b950
1 changed files with 6 additions and 3 deletions
|
@ -41,9 +41,6 @@
|
|||
if (!defined('LOG_WARNING')) {
|
||||
define('LOG_WARNING', 3);
|
||||
}
|
||||
if (!defined('LOG_ERR')) {
|
||||
define('LOG_ERR', LOG_ERROR);
|
||||
}
|
||||
if (!defined('LOG_NOTICE')) {
|
||||
define('LOG_NOTICE', 4);
|
||||
}
|
||||
|
@ -69,6 +66,12 @@ class CakeLog {
|
|||
* @access public
|
||||
*/
|
||||
function write($type, $msg) {
|
||||
if (!defined('LOG_ERROR')) {
|
||||
define('LOG_ERROR', 2);
|
||||
}
|
||||
if (!defined('LOG_ERR')) {
|
||||
define('LOG_ERR', LOG_ERROR);
|
||||
}
|
||||
$levels = array(
|
||||
LOG_WARNING => 'warning',
|
||||
LOG_NOTICE => 'notice',
|
||||
|
|
Loading…
Add table
Reference in a new issue