Project

General

Profile

« Previous | Next » 

Revision aceaf18c

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.captiveportal_configure
28 28
	POSSIBILITY OF SUCH DAMAGE.
29 29
*/
30 30

  
31
require("config.inc");
32
require("functions.inc");
31
require_once("config.inc");
32
require_once("functions.inc");
33 33
require_once("filter.inc");
34
require("shaper.inc");
35
require("captiveportal.inc");
34
require_once("shaper.inc");
35
require_once("captiveportal.inc");
36 36

  
37 37
captiveportal_configure();
38 38

  

Also available in: Unified diff