Revision c81ef6e2
Added by Phil Davis about 9 years ago
src/usr/local/www/diag_smart.php | ||
---|---|---|
61 | 61 |
##|*MATCH=diag_smart.php* |
62 | 62 |
##|-PRIV |
63 | 63 |
|
64 |
require("guiconfig.inc"); |
|
64 |
require_once("guiconfig.inc");
|
|
65 | 65 |
|
66 | 66 |
// What page, aka. action is being wanted |
67 | 67 |
// If they "get" a page but don't pass all arguments, smartctl will throw an error |
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().