From 8875422bed0a6db5f0140a351daf7dd90bfac9f0 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 19 Jul 2009 17:21:49 +0100 Subject: [PATCH] someone else is defining these... --- core/util.inc.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index c9889b0a..29c9965f 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -305,12 +305,12 @@ function format_text($string) { * Logging convenience * \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -define("LOG_CRITICAL", 50); -define("LOG_ERROR", 40); -define("LOG_WARNING", 30); -define("LOG_INFO", 20); -define("LOG_DEBUG", 10); -define("LOG_NOTSET", 0); +if(!defined("LOG_CRITICAL")) define("LOG_CRITICAL", 50); +if(!defined("LOG_ERROR")) define("LOG_ERROR", 40); +if(!defined("LOG_WARNING")) define("LOG_WARNING", 30); +if(!defined("LOG_INFO")) define("LOG_INFO", 20); +if(!defined("LOG_DEBUG")) define("LOG_DEBUG", 10); +if(!defined("LOG_NOTSET")) define("LOG_NOTSET", 0); function log_msg($section, $priority, $message) { send_event(new LogEvent($section, $priority, $message));