Project

General

Profile

« Previous | Next » 

Revision f6aebbcc

Added by NewEraCracker over 9 years ago

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.

View differences:

src/usr/local/www/services_unbound.php
556 556
</nav>
557 557

  
558 558
<div class="infoblock">
559
	<?=print_info_box(sprintf(gettext("If the DNS Resolver is enabled, the DHCP".
559
	<?php print_info_box(sprintf(gettext("If the DNS Resolver is enabled, the DHCP".
560 560
		" service (if enabled) will automatically serve the LAN IP".
561 561
		" address as a DNS server to DHCP clients so they will use".
562 562
		" the DNS Resolver. If Forwarding is enabled, the DNS Resolver will use the DNS servers".
563 563
		" entered in %sSystem: General setup%s".
564 564
		" or those obtained via DHCP or PPP on WAN if &quot;Allow".
565 565
		" DNS server list to be overridden by DHCP/PPP on WAN&quot;".
566
		" is checked."), '<a href="system.php">', '</a>'), 'info', false)?>
566
		" is checked."), '<a href="system.php">', '</a>'), 'info', false); ?>
567 567
</div>
568 568

  
569 569
<?php include("foot.inc");

Also available in: Unified diff