Revision c81ef6e2
Added by Phil Davis about 9 years ago
src/usr/local/www/status_pkglogs.php | ||
---|---|---|
71 | 71 |
##|*MATCH=status_pkglogs.php* |
72 | 72 |
##|-PRIV |
73 | 73 |
|
74 |
require("guiconfig.inc"); |
|
75 |
require("pkg-utils.inc"); |
|
74 |
require_once("guiconfig.inc");
|
|
75 |
require_once("pkg-utils.inc");
|
|
76 | 76 |
|
77 | 77 |
if (!($nentries = $config['syslog']['nentries'])) { |
78 | 78 |
$nentries = 50; |
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().