From 225be9361096c33450fd5daad76f3f2390889f34 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 17 May 2010 06:15:03 +0000 Subject: [PATCH] - correcting constructor-call of FileLogger --- install/updatesql.php | 4 ++-- lib/functions/froxlor/function.updateFunctions.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install/updatesql.php b/install/updatesql.php index 9c15d479..dbda37bb 100644 --- a/install/updatesql.php +++ b/install/updatesql.php @@ -89,8 +89,8 @@ if(!isFroxlor()) if(isFroxlor()) { - $filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $db, $settings); - $filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'update.log')); + $filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $settings); + $filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'/update.log')); $filelog->logAction(ADM_ACTION, LOG_NOTICE, '-------------- START LOG --------------'); include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php')); $filelog->logAction(ADM_ACTION, LOG_NOTICE, '--------------- END LOG ---------------'); diff --git a/lib/functions/froxlor/function.updateFunctions.php b/lib/functions/froxlor/function.updateFunctions.php index c535f8f8..ecd68e36 100644 --- a/lib/functions/froxlor/function.updateFunctions.php +++ b/lib/functions/froxlor/function.updateFunctions.php @@ -172,6 +172,6 @@ function lastStepStatus($status = -1, $message = '') } elseif($status == 0 || $status == 1) { - $filelog->logAction(ADM_ACTION, LOG_NOTICE, 'Success'); + $filelog->logAction(ADM_ACTION, LOG_WARNING, 'Success'); } }