X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finc-functions.php;h=aded9e43ae39b2246af638252284f729908d6f7d;hb=d8dfab4ceb65e9c277633100c2bb0e6a152fbd57;hp=7b33f373227ce3ff16b2a07f97855519803da402;hpb=2df8c1757b41f35e7c5b6a92c52ca96ab1b0bcb8;p=mailer.git diff --git a/inc/inc-functions.php b/inc/inc-functions.php index 7b33f37322..aded9e43ae 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -93,7 +93,7 @@ function removeIncludeFromPool ($pool, $inc) { $key = array_search($inc, getIncludePool($pool)); // Is it valid? - if ($key !== false) { + if ($key !== FALSE) { // Then remove it unset($GLOBALS['inc_pool'][$pool][$key]); @@ -117,7 +117,7 @@ function loadIncludePool ($pool) { // 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)) { @@ -136,10 +136,7 @@ function loadInclude ($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 @@ -147,7 +144,7 @@ function loadIncludeOnce ($inc) { // 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;