diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-15 01:52:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-15 01:52:14 +0000 |
commit | 346089b05b9b95bcd96b3e354eaabdff3f3946a0 (patch) | |
tree | 714ffe1d31dda446b7b34b867c4a0e1c28c62f3f /etc/inc/config.inc | |
parent | 556d59bed126e19ef9f860c84bfa313255bb989e (diff) | |
download | pfsense-346089b05b9b95bcd96b3e354eaabdff3f3946a0.zip pfsense-346089b05b9b95bcd96b3e354eaabdff3f3946a0.tar.gz |
Use $g['booting']
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r-- | etc/inc/config.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index d0130c1..91c0c99 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -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; |