Revision c81ef6e2
Added by Phil Davis almost 9 years ago
src/etc/inc/upgrade_config.inc | ||
---|---|---|
54 | 54 |
*/ |
55 | 55 |
|
56 | 56 |
if (!function_exists("dump_rrd_to_xml")) { |
57 |
require("rrd.inc"); |
|
57 |
require_once("rrd.inc");
|
|
58 | 58 |
} |
59 | 59 |
if (!function_exists("read_altq_config")) { |
60 |
require("shaper.inc"); |
|
60 |
require_once("shaper.inc");
|
|
61 | 61 |
} |
62 | 62 |
|
63 | 63 |
/* Upgrade functions must be named: |
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().