"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:
phpnut 2007-12-23 09:13:02 +00:00
parent d7b0a5865b
commit 7890c1b950

View file

@ -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',