summaryrefslogtreecommitdiffstats
path: root/src
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:42:02 -0400
commit9d62661843e3efea6a73762e8b36ceb4ac6d69ee (patch)
tree287e8be86b8a57f12c3bace0076e24b18e2354ce /src
parentfa32e8faeacb1a8c85ca7a57e19d67d94b63c4b3 (diff)
downloadpfsense-9d62661843e3efea6a73762e8b36ceb4ac6d69ee.zip
pfsense-9d62661843e3efea6a73762e8b36ceb4ac6d69ee.tar.gz
Fix handling of backup config count. Fixes #6771
Diffstat (limited to 'src')
-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