Project

General

Profile

« Previous | Next » 

Revision aceaf18c

Added by Phil Davis almost 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/firewall_schedule.php
68 68
$dayArray = array (gettext('Mon'), gettext('Tues'), gettext('Wed'), gettext('Thur'), gettext('Fri'), gettext('Sat'), gettext('Sun'));
69 69
$monthArray = array (gettext('January'), gettext('February'), gettext('March'), gettext('April'), gettext('May'), gettext('June'), gettext('July'), gettext('August'), gettext('September'), gettext('October'), gettext('November'), gettext('December'));
70 70

  
71
require("guiconfig.inc");
71
require_once("guiconfig.inc");
72 72
require_once("filter.inc");
73
require("shaper.inc");
73
require_once("shaper.inc");
74 74

  
75 75
$pgtitle = array(gettext("Firewall"), gettext("Schedules"));
76 76

  

Also available in: Unified diff