From c81ef6e25d9d5f7c3a1899a21f9987dae079deca Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 27 Jun 2016 14:30:14 +0930 Subject: Always use require_once The usage of require() and require_once() throughout the system is inconsistent, and "bugs" come up now and then when the order of "requires" is a bit different and some require() happens after the include file is already included/required. It seems to me that there is no harm at all in always using require_once(). --- src/usr/local/www/services_dhcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr/local/www/services_dhcp.php') diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php index 401f2f5..6bff118 100644 --- a/src/usr/local/www/services_dhcp.php +++ b/src/usr/local/www/services_dhcp.php @@ -63,7 +63,7 @@ ##|*MATCH=services_dhcp.php* ##|-PRIV -require("guiconfig.inc"); +require_once("guiconfig.inc"); require_once("filter.inc"); require_once('rrd.inc'); require_once("shaper.inc"); -- cgit v1.1