$key = array_search($inc, getIncludePool($pool));
// Is it valid?
- if ($key !== false) {
+ if ($key !== FALSE) {
// Then remove it
unset($GLOBALS['inc_pool'][$pool][$key]);
// Loads an include file and logs any missing files for debug purposes
function loadInclude ($inc) {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS['inc_loaded'][$inc])) {
// Is the include file there?
if (!isIncludeReadable($inc)) {
// Loads an include file once
function loadIncludeOnce ($inc) {
// Is it not loaded?
- if (!isset($GLOBALS['load_once'][$inc])) {
- // Mark it as loaded
- $GLOBALS['load_once'][$inc] = 'loaded';
-
+ if (!isset($GLOBALS['inc_loaded'][$inc])) {
// Then try to load it
loadInclude($inc);
} // END - if
// Checks whether an include file (non-FQFN better) is readable
function isIncludeReadable ($inc) {
- // Do we have cache?
+ // Is there cache?
if (!isset($GLOBALS['inc_readable'][$inc])) {
// Construct FQFN
$FQFN = getPath() . $inc;