Project

General

Profile

« Previous | Next » 

Revision c81ef6e2

Added by Phil Davis about 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.restart_webgui
2 2

  
3 3
<?php
4 4

  
5
require("config.inc");
6
require("functions.inc");
7
require("shaper.inc");
8
require("captiveportal.inc");
5
require_once("config.inc");
6
require_once("functions.inc");
7
require_once("shaper.inc");
8
require_once("captiveportal.inc");
9 9
require_once("rrd.inc");
10 10

  
11 11
echo "Restarting webConfigurator...";

Also available in: Unified diff