Use $g['booting']

This commit is contained in:
Scott Ullrich 2006-01-15 01:52:14 +00:00
parent 556d59bed1
commit 346089b05b

View File

@ -1331,7 +1331,7 @@ function cleanup_backupcache($revisions = 30) {
$tocheck = array_shift(explode('.', array_pop(explode('-', $backup))));
if(!in_array($tocheck, $baktimes)) {
$i = true;
if($bootup) print " " . $tocheck . "a";
if($g['booting']) print " " . $tocheck . "a";
$newxml = parse_xml_config($backup, $g['xml_rootobj']);
if($newxml['revision']['description'] == "") $newxml['revision']['description'] = "Unknown";
$tocache[$tocheck] = array('description' => $newxml['revision']['description']);
@ -1342,7 +1342,7 @@ function cleanup_backupcache($revisions = 30) {
$newbaks[] = $checkbak;
} else {
$i = true;
if($bootup) print " " . $tocheck . "r";
if($g['booting']) print " " . $tocheck . "r";
}
}
foreach($newbaks as $todo) $tocache[$todo['time']] = array('description' => $todo['description']);
@ -1352,7 +1352,7 @@ function cleanup_backupcache($revisions = 30) {
foreach($tocache as $version => $versioninfo) {
if(!in_array($version, array_keys($newcache))) {
unlink_if_exists($g['conf_path'] . '/backup/config-' . $version . '.xml');
if($bootup) print " " . $tocheck . "d";
if($g['booting']) print " " . $tocheck . "d";
}
}
$tocache = $newcache;