diff options
author | Phil Davis <phil.davis@inf.org> | 2016-02-20 03:36:34 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-02-20 03:36:34 +0545 |
commit | ed98ef92114014b7ba019fa3ee9d1e4d7379b6cc (patch) | |
tree | 6a827c0ab9b4ecbfdd9876b9a2d8971950ab36b3 | |
parent | 0c354e64b524a15c53b5ee52fbed90e443ee3e22 (diff) | |
download | pfsense-ed98ef92114014b7ba019fa3ee9d1e4d7379b6cc.zip pfsense-ed98ef92114014b7ba019fa3ee9d1e4d7379b6cc.tar.gz |
Allow user to dismiss diag_edit messages
Previously the close 'x' was displayed, but after this code was changed to use print_info_box() the close 'x' was not being displayed.
-rw-r--r-- | src/usr/local/www/diag_edit.php | 16 |
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('|'); } } |