Project

General

Profile

« Previous | Next » 

Revision 607e7686

Added by NewEraCracker over 9 years ago

Minor tweaks to simplify code

Calling print(sprintf(...)) can be simplified to printf(...).

View differences:

src/usr/local/www/diag_halt.php
85 85
	print_info_box(gettext("The system is halting now. This may take one minute or so."), 'success', false);
86 86

  
87 87
	if (DEBUG) {
88
	   print(sprintf(gettext("Not actually halting (DEBUG is set true)%s"), "<br />"));
88
	   printf(gettext("Not actually halting (DEBUG is set true)%s"), "<br />");
89 89
	} else {
90 90
		print('<pre>');
91 91
		system_halt();
src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
177 177
		<?php endif; ?>
178 178
		</td>
179 179
		<td>
180
		<?php print(htmlspecialchars($hostname)); ?>
180
		<?=htmlspecialchars($hostname);?>
181 181
		</td>
182 182
		<td>
183 183
		<div id="dyndnsstatus<?= $dyndnsid;?>"><?= gettext("Checking ...");?></div>

Also available in: Unified diff