- show START and END of update.log
- tiny beautification in updater
This commit is contained in:
@@ -280,7 +280,8 @@ if(isFroxlorVersion('0.9-r3'))
|
|||||||
|
|
||||||
if(isFroxlorVersion('0.9-r4'))
|
if(isFroxlorVersion('0.9-r4'))
|
||||||
{
|
{
|
||||||
showUpdateStep("Updating from 0.9-r4 to 0.9 final", false);
|
showUpdateStep("Updating from 0.9-r4 to 0.9 final");
|
||||||
|
lastStepStatus(0);
|
||||||
updateToVersion('0.9');
|
updateToVersion('0.9');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ $updatelog = FroxlorLogger::getInstanceOf(array('loginname' => 'updater'), $db,
|
|||||||
|
|
||||||
$filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $settings);
|
$filelog = FileLogger::getInstanceOf(array('loginname' => 'updater'), $settings);
|
||||||
$filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'/update.log'));
|
$filelog->setLogFile(makeCorrectFile(dirname(__FILE__).'/update.log'));
|
||||||
|
$filelog->logAction(ADM_ACTION, LOG_WARNING, '-------------- START LOG --------------');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* since froxlor, we have to check if there's still someone
|
* since froxlor, we have to check if there's still someone
|
||||||
@@ -92,9 +93,8 @@ if(!isFroxlor())
|
|||||||
|
|
||||||
if(isFroxlor())
|
if(isFroxlor())
|
||||||
{
|
{
|
||||||
$filelog->logAction(ADM_ACTION, LOG_NOTICE, '-------------- START LOG --------------');
|
|
||||||
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php'));
|
include_once (makeCorrectFile(dirname(__FILE__).'/updates/froxlor/0.9/update_0.9.inc.php'));
|
||||||
$filelog->logAction(ADM_ACTION, LOG_NOTICE, '--------------- END LOG ---------------');
|
$filelog->logAction(ADM_ACTION, LOG_WARNING, '--------------- END LOG ---------------');
|
||||||
unset($filelog);
|
unset($filelog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user