From f6aebbcc55b4e83d4a05f503b5491ce5e6fb043b Mon Sep 17 00:00:00 2001 From: NewEraCracker Date: Mon, 15 Feb 2016 15:16:31 +0000 Subject: Bring all calls of print_info_box to same standard The call itself to print_info_box already echoes the content. There is no need of additionally using the short-open-echo tag on those calls to echo return value. The previous implementation shouldn't yell any visible issues as return is 'NULL' (undefined) which casts to an empty string when printing. But, just for the sake of conformity, this changes are advisable in my opinion. --- src/usr/local/www/diag_backup.php | 2 +- src/usr/local/www/diag_confbak.php | 4 ++-- src/usr/local/www/firewall_aliases.php | 4 ++-- src/usr/local/www/firewall_nat_1to1.php | 4 ++-- src/usr/local/www/firewall_schedule.php | 2 +- src/usr/local/www/firewall_shaper.php | 2 +- src/usr/local/www/firewall_virtual_ip.php | 4 ++-- src/usr/local/www/firewall_virtual_ip_edit.php | 4 ++-- src/usr/local/www/interfaces_groups.php | 4 ++-- src/usr/local/www/interfaces_qinq.php | 4 ++-- src/usr/local/www/interfaces_vlan.php | 4 ++-- src/usr/local/www/pkg_mgr.php | 4 ++-- src/usr/local/www/services_captiveportal_hostname.php | 2 +- src/usr/local/www/services_captiveportal_ip.php | 4 ++-- src/usr/local/www/services_captiveportal_mac.php | 2 +- src/usr/local/www/services_igmpproxy.php | 4 ++-- src/usr/local/www/services_unbound.php | 4 ++-- src/usr/local/www/status_logs_filter_summary.php | 2 +- src/usr/local/www/system_gateway_groups.php | 4 ++-- src/usr/local/www/system_usermanager.php | 4 ++-- src/usr/local/www/vpn_ipsec.php | 4 ++-- 21 files changed, 36 insertions(+), 36 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php index dba496f..d499442 100644 --- a/src/usr/local/www/diag_backup.php +++ b/src/usr/local/www/diag_backup.php @@ -609,7 +609,7 @@ if (is_subsystem_dirty('restore')):
- " . gettext("The firewall is now rebooting."))?> + " . gettext("The firewall is now rebooting.")); ?>
- + 'info', false); ?>
- ' . 'You can enter the name of an alias instead of the host, network or port where indicated. The alias will be resolved according to the list above.' . '
' . - 'If an alias cannot be resolved (e.g. because you deleted it), the corresponding element (e.g. filter/NAT/shaper rule) will be considered invalid and skipped.'), 'info', false)?> + 'If an alias cannot be resolved (e.g. because you deleted it), the corresponding element (e.g. filter/NAT/shaper rule) will be considered invalid and skipped.'), 'info', false); ?>
diff --git a/src/usr/local/www/firewall_nat_1to1.php b/src/usr/local/www/firewall_nat_1to1.php index 50c48ff..0c77c76 100644 --- a/src/usr/local/www/firewall_nat_1to1.php +++ b/src/usr/local/www/firewall_nat_1to1.php @@ -285,12 +285,12 @@ display_top_tabs($tab_array);
-' . +' . gettext("Virtual IP.") . '' . '
' . gettext('If you add a 1:1 NAT entry for any of the interface IPs on this system, ' . 'it will make this system inaccessible on that IP address. i.e. if ' . 'you use your WAN IP address, any services on this system (IPsec, OpenVPN server, etc.) ' . - 'using the WAN IP address will no longer function.'), 'info', false)?> + 'using the WAN IP address will no longer function.'), 'info', false); ?>
diff --git a/src/usr/local/www/firewall_schedule.php b/src/usr/local/www/firewall_schedule.php index e531a80..b69a090 100644 --- a/src/usr/local/www/firewall_schedule.php +++ b/src/usr/local/www/firewall_schedule.php @@ -280,7 +280,7 @@ endforeach;
- +
- +
- ', '') . '
' . - sprintf(gettext('You can check the status of your CARP Virtual IPs and interfaces %1$shere%2$s.'), '', ''), 'info', false)?> + ', '') . '
' . + sprintf(gettext('You can check the status of your CARP Virtual IPs and interfaces %1$shere%2$s.'), '', ''), 'info', false); ?>
- ' . - sprintf(gettext("For more information on CARP and the above values, visit the OpenBSD %s"), 'CARP FAQ.'), 'info', false)?> + ' . + sprintf(gettext("For more information on CARP and the above values, visit the OpenBSD %s"), 'CARP FAQ.'), 'info', false); ?>