Revision c81ef6e2
Added by Phil Davis almost 9 years ago
src/usr/local/www/interfaces_ppps.php | ||
---|---|---|
63 | 63 |
##|*MATCH=interfaces_ppps.php* |
64 | 64 |
##|-PRIV |
65 | 65 |
|
66 |
require("guiconfig.inc"); |
|
66 |
require_once("guiconfig.inc");
|
|
67 | 67 |
require_once("functions.inc"); |
68 | 68 |
|
69 | 69 |
function ppp_inuse($num) { |
Also available in: Unified diff
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().