summaryrefslogtreecommitdiffstats
path: root/system/codeigniter/Common.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-08-27 17:28:31 +0200
committeradmin <devnull@localhost>2006-08-27 17:28:31 +0200
commit57b3d39cb79bb3b8d193e0e345a62e3396e519f2 (patch)
treea453970cc05172c819df5bd7a04b3c431e67a37a /system/codeigniter/Common.php
parent141808ad31d4eefad4c6c3dbaf8306fac2342668 (diff)
Diffstat (limited to 'system/codeigniter/Common.php')
-rw-r--r--system/codeigniter/Common.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php
index 4879e7099..d5bec77fe 100644
--- a/system/codeigniter/Common.php
+++ b/system/codeigniter/Common.php
@@ -153,8 +153,10 @@ function show_404($page = '')
* @access public
* @return void
*/
-function log_message($level = 2, $message, $php_error = FALSE)
+function log_message($level = 'error', $message, $php_error = FALSE)
{
+ static $LOG;
+
$config =& _get_config();
if ($config['log_errors'] === FALSE)
{
@@ -166,7 +168,7 @@ function log_message($level = 2, $message, $php_error = FALSE)
include_once(BASEPATH.'libraries/Log.php');
}
- if ( ! isset($LOG))
+ if ( ! is_object($LOG))
{
$LOG = new CI_Log(
$config['log_path'],