Revision aceaf18c
Added by Phil Davis about 9 years ago
src/usr/local/www/graph.php | ||
---|---|---|
65 | 65 |
##|*MATCH=graph.php* |
66 | 66 |
##|-PRIV |
67 | 67 |
|
68 |
require("globals.inc"); |
|
69 |
require("guiconfig.inc"); |
|
68 |
require_once("globals.inc");
|
|
69 |
require_once("guiconfig.inc");
|
|
70 | 70 |
|
71 | 71 |
header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT"); |
72 | 72 |
header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT"); |
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().