Project

General

Profile

« Previous | Next » 

Revision aceaf18c

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/usr/local/www/status_openvpn.php
64 64
$pgtitle = array(gettext("Status"), gettext("OpenVPN"));
65 65
$shortcut_section = "openvpn";
66 66

  
67
require("guiconfig.inc");
67
require_once("guiconfig.inc");
68 68
require_once("openvpn.inc");
69 69
require_once("shortcuts.inc");
70 70
require_once("service-utils.inc");

Also available in: Unified diff