summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.restart_webgui
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-06-27 14:30:14 +0930
committerPhil Davis <phil.davis@inf.org>2016-06-27 14:30:14 +0930
commitc81ef6e25d9d5f7c3a1899a21f9987dae079deca (patch)
treed4e2fb374fd16e1cef0bc22215ef7e78ed009342 /src/etc/rc.restart_webgui
parent2208be8b2d7dfcd884db9013fb8347d6856fa43c (diff)
downloadpfsense-c81ef6e25d9d5f7c3a1899a21f9987dae079deca.zip
pfsense-c81ef6e25d9d5f7c3a1899a21f9987dae079deca.tar.gz
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().
Diffstat (limited to 'src/etc/rc.restart_webgui')
-rwxr-xr-xsrc/etc/rc.restart_webgui8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/etc/rc.restart_webgui b/src/etc/rc.restart_webgui
index 45034ac..a65a8aa 100755
--- a/src/etc/rc.restart_webgui
+++ b/src/etc/rc.restart_webgui
@@ -2,10 +2,10 @@
<?php
-require("config.inc");
-require("functions.inc");
-require("shaper.inc");
-require("captiveportal.inc");
+require_once("config.inc");
+require_once("functions.inc");
+require_once("shaper.inc");
+require_once("captiveportal.inc");
require_once("rrd.inc");
echo "Restarting webConfigurator...";
OpenPOWER on IntegriCloud