summaryrefslogtreecommitdiffstats
path: root/lib/log.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
commita31560aec4f004e58930277758f5412d86c62adc (patch)
tree845ff6947d26b22a0f4527901dbefc97bca89d78 /lib/log.lib.php
parent8b27d66add7ca9ba57d7e9488612cb54be4b11c1 (diff)
downloadampache-a31560aec4f004e58930277758f5412d86c62adc.tar.gz
ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.bz2
ampache-a31560aec4f004e58930277758f5412d86c62adc.zip
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
Diffstat (limited to 'lib/log.lib.php')
-rw-r--r--lib/log.lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/log.lib.php b/lib/log.lib.php
index 1b2d33e5..66d7263f 100644
--- a/lib/log.lib.php
+++ b/lib/log.lib.php
@@ -33,7 +33,7 @@ function log_event($username='Unknown',$event_name,$event_description,$log_name=
/* must have some name */
if (!strlen($log_name)) { $log_name = 'ampache'; }
- $log_filename = conf('log_path') . "/$log_name." . date("Ymd",$log_time) . ".log";
+ $log_filename = Config::get('log_path') . "/$log_name." . date("Ymd",$log_time) . ".log";
$log_line = date("Y-m-d H:i:s",$log_time) . " { $username } ( $event_name ) - $event_description \n";
$log_write = error_log($log_line, 3, $log_filename);
@@ -109,7 +109,7 @@ function ampache_error_handler($errno, $errstr, $errfile, $errline) {
*/
function debug_event($type,$message,$level,$file='',$username='') {
- if (!conf('debug') || $level > conf('debug_level')) {
+ if (!Config::get('debug') || $level > Config::get('debug_level')) {
return false;
}