Project

General

Profile

« Previous | Next » 

Revision 6dfb6b27

Added by Phil Davis almost 9 years ago

Update include() to include_once()

For safety, use include_once() when including various "side" files.
There are a couple of instances of include("guiconfig,inc") that I
changes to use require_once() to be consistent with everywhere else.
The remaining cases of include() are just (hundreds of) head.inc and
footer.inc - those are only at the start/end of the ordinary top-level
interactive PHP files. There is no nested interaction of those to think
about, so that should be fine.

View differences:

src/etc/inc/globals.inc
221 221

  
222 222
/* Include override values for the above if needed. If the file doesn't exist, don't try to load it. */
223 223
if (file_exists("/etc/inc/globals_override.inc")) {
224
	@include("globals_override.inc");
224
	@include_once("globals_override.inc");
225 225
}
226 226

  
227 227
/* Read all XML files in following dir and load menu entries */

Also available in: Unified diff