summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorstilez <stilez@users.noreply.github.com>2016-05-24 10:15:03 +0100
committerStephen Beaver <sbeaver@netgate.com>2016-06-22 11:12:28 -0400
commit8537c4a61ce0c5b70c7464871b5b5e488130eaaa (patch)
treeca2f22fc615b28aa536a9eb12876f328dbb24e4f /src/usr
parent6ba90672ea07980731f3ddceb7f1f531319c1e8f (diff)
downloadpfsense-8537c4a61ce0c5b70c7464871b5b5e488130eaaa.zip
pfsense-8537c4a61ce0c5b70c7464871b5b5e488130eaaa.tar.gz
fix logic and replace hard coded value by global
backups should be a numeric int. text hint for number of backups can now refer to the global value for this platform (and explains how to get that default, by leaving blank) (cherry picked from commit 16b17c15f9fc29e9480431b5bc7bebe2bd4b6230)
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/local/www/diag_confbak.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_confbak.php b/src/usr/local/www/diag_confbak.php
index 147238f..e951ef6 100644
--- a/src/usr/local/www/diag_confbak.php
+++ b/src/usr/local/www/diag_confbak.php
@@ -64,7 +64,7 @@
require("guiconfig.inc");
if (isset($_POST['backupcount'])) {
- if (is_numeric($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) {
+ if (is_numericint($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) {
$config['system']['backupcount'] = $_POST['backupcount'];
$changedescr = $config['system']['backupcount'];
} else {
@@ -193,7 +193,7 @@ $section->addInput(new Form_Input(
'Backup Count',
'number',
$config['system']['backupcount']
-))->setHelp('Maximum number of old configurations to keep in the cache. By default this is 30 for a full install or 5 on NanoBSD. ');
+))->setHelp('Maximum number of old configurations to keep in the cache, 0 for no backups, or leave blank for the default value (' . $g['default_config_backup_count'] . ' for the current platform).');
$space = exec("/usr/bin/du -sh /conf/backup | /usr/bin/awk '{print $1;}'");
OpenPOWER on IntegriCloud