summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-09-06 11:40:26 -0400
committerjim-p <jimp@pfsense.org>2016-09-06 11:41:45 -0400
commit8c5b9920f345ff0366c310e3abd53a3654a9141b (patch)
tree607e3a38266f156bbe8d5c7fcd208654ef9a2fc7
parent6df9b5cb096ef491079ff234fb48b3665811e7e4 (diff)
downloadpfsense-8c5b9920f345ff0366c310e3abd53a3654a9141b.zip
pfsense-8c5b9920f345ff0366c310e3abd53a3654a9141b.tar.gz
Fix handling of backup config count. Fixes #6771
-rw-r--r--src/etc/inc/config.lib.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/config.lib.inc b/src/etc/inc/config.lib.inc
index 963c5c8..e0b51e9 100644
--- a/src/etc/inc/config.lib.inc
+++ b/src/etc/inc/config.lib.inc
@@ -789,7 +789,7 @@ function config_validate($conffile) {
}
function cleanup_backupcache($lock = false) {
- global $g;
+ global $config, $g;
$i = false;
$revisions = intval(is_numericint($config['system']['backupcount']) ? $config['system']['backupcount'] : $g['default_config_backup_count']);
OpenPOWER on IntegriCloud