summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-02-19 16:59:03 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-02-19 16:59:03 -0500
commit6d575d47d9ac5e6b2f4b99457f5513d969bfa22d (patch)
tree6a827c0ab9b4ecbfdd9876b9a2d8971950ab36b3
parent0c354e64b524a15c53b5ee52fbed90e443ee3e22 (diff)
parented98ef92114014b7ba019fa3ee9d1e4d7379b6cc (diff)
downloadpfsense-6d575d47d9ac5e6b2f4b99457f5513d969bfa22d.zip
pfsense-6d575d47d9ac5e6b2f4b99457f5513d969bfa22d.tar.gz
Merge pull request #2674 from phil-davis/patch-3
-rw-r--r--src/usr/local/www/diag_edit.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/usr/local/www/diag_edit.php b/src/usr/local/www/diag_edit.php
index 366723d..cbfd35d 100644
--- a/src/usr/local/www/diag_edit.php
+++ b/src/usr/local/www/diag_edit.php
@@ -70,21 +70,21 @@ if ($_POST['action']) {
case 'load':
if (strlen($_POST['file']) < 1) {
print('|5|');
- print_info_box(gettext("No file name specified."), 'danger', false);
+ print_info_box(gettext("No file name specified."), 'danger');
print('|');
} elseif (is_dir($_POST['file'])) {
print('|4|');
- print_info_box(gettext("Loading a directory is not supported."), 'danger', false);
+ print_info_box(gettext("Loading a directory is not supported."), 'danger');
print('|');
} elseif (!is_file($_POST['file'])) {
print('|3|');
- print_info_box(gettext("File does not exist or is not a regular file."), 'danger', false);
+ print_info_box(gettext("File does not exist or is not a regular file."), 'danger');
print('|');
} else {
$data = file_get_contents(urldecode($_POST['file']));
if ($data === false) {
print('|1|');
- print_info_box(gettext("Failed to read file."), 'danger', false);
+ print_info_box(gettext("Failed to read file."), 'danger');
print('|');
} else {
$data = base64_encode($data);
@@ -96,7 +96,7 @@ if ($_POST['action']) {
case 'save':
if (strlen($_POST['file']) < 1) {
print('|');
- print_info_box(gettext("No file name specified."), 'danger', false);
+ print_info_box(gettext("No file name specified."), 'danger');
print('|');
} else {
conf_mount_rw();
@@ -111,15 +111,15 @@ if ($_POST['action']) {
}
if ($ret === false) {
print('|');
- print_info_box(gettext("Failed to write file."), 'danger', false);
+ print_info_box(gettext("Failed to write file."), 'danger');
print('|');
} elseif ($ret != strlen($_POST['data'])) {
print('|');
- print_info_box(gettext("Error while writing file."), 'danger', false);
+ print_info_box(gettext("Error while writing file."), 'danger');
print('|');
} else {
print('|');
- print_info_box(gettext("File saved successfully."), 'success', false);
+ print_info_box(gettext("File saved successfully."), 'success');
print('|');
}
}
OpenPOWER on IntegriCloud