diff options
author | Phil Davis <phil.davis@inf.org> | 2016-06-27 14:30:14 +0930 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-06-27 14:30:14 +0930 |
commit | c81ef6e25d9d5f7c3a1899a21f9987dae079deca (patch) | |
tree | d4e2fb374fd16e1cef0bc22215ef7e78ed009342 /src/usr/local/www/vpn_l2tp_users.php | |
parent | 2208be8b2d7dfcd884db9013fb8347d6856fa43c (diff) | |
download | pfsense-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/usr/local/www/vpn_l2tp_users.php')
-rw-r--r-- | src/usr/local/www/vpn_l2tp_users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/vpn_l2tp_users.php b/src/usr/local/www/vpn_l2tp_users.php index 3d8d877..49f6fa9 100644 --- a/src/usr/local/www/vpn_l2tp_users.php +++ b/src/usr/local/www/vpn_l2tp_users.php @@ -63,7 +63,7 @@ $pgtitle = array(gettext("VPN"), gettext("L2TP"), gettext("Users")); $shortcut_section = "l2tps"; -require("guiconfig.inc"); +require_once("guiconfig.inc"); require_once("vpn.inc"); if (!is_array($config['l2tp']['user'])) { |