diff options
author | Phil Davis <phil.davis@inf.org> | 2016-06-27 14:30:14 +0930 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-06-27 14:16:30 -0500 |
commit | 71d3c2f7523833f8cfd623cfe2a8c5e8b205126a (patch) | |
tree | 9e97e422de2a34f8d7adcec3618642151edd9366 /src/usr/local/www/interfaces_vlan_edit.php | |
parent | 7943b6a7ede151dd5aeac7c3718c03fb229e120a (diff) | |
download | pfsense-71d3c2f7523833f8cfd623cfe2a8c5e8b205126a.zip pfsense-71d3c2f7523833f8cfd623cfe2a8c5e8b205126a.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/interfaces_vlan_edit.php')
-rw-r--r-- | src/usr/local/www/interfaces_vlan_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_vlan_edit.php b/src/usr/local/www/interfaces_vlan_edit.php index ab0b0b9..3a72104 100644 --- a/src/usr/local/www/interfaces_vlan_edit.php +++ b/src/usr/local/www/interfaces_vlan_edit.php @@ -63,7 +63,7 @@ ##|*MATCH=interfaces_vlan_edit.php* ##|-PRIV -require("guiconfig.inc"); +require_once("guiconfig.inc"); if (!is_array($config['vlans']['vlan'])) { $config['vlans']['vlan'] = array(); |