From 7890c1b950fda000318ac24a0922a45c07cb038d Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 23 Dec 2007 09:13:02 +0000 Subject: [PATCH] "Fixes #3625, LOG_ERROR undefined" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6220 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/cake_log.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cake/libs/cake_log.php b/cake/libs/cake_log.php index e4de23d02..9a38084c6 100644 --- a/cake/libs/cake_log.php +++ b/cake/libs/cake_log.php @@ -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',