diff options
author | admin <devnull@localhost> | 2006-08-27 17:28:31 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-08-27 17:28:31 +0200 |
commit | 57b3d39cb79bb3b8d193e0e345a62e3396e519f2 (patch) | |
tree | a453970cc05172c819df5bd7a04b3c431e67a37a /system/codeigniter/Common.php | |
parent | 141808ad31d4eefad4c6c3dbaf8306fac2342668 (diff) |
Diffstat (limited to 'system/codeigniter/Common.php')
-rw-r--r-- | system/codeigniter/Common.php | 6 |
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'], |