Project

General

Profile

« Previous | Next » 

Revision c81ef6e2

Added by Phil Davis almost 9 years ago

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().

View differences:

src/etc/rc.initial.password
32 32
	/* parse the configuration and include all functions used below */
33 33

  
34 34
	require_once("config.inc");
35
	require("auth.inc");
35
	require_once("auth.inc");
36 36
	require_once("functions.inc");
37 37
	require_once("shaper.inc");
38 38

  

Also available in: Unified diff