]> git.mxchange.org Git - mailer.git/blobdiff - inc/inc-functions.php
Swapped all
[mailer.git] / inc / inc-functions.php
index 7b33f373227ce3ff16b2a07f97855519803da402..aded9e43ae39b2246af638252284f729908d6f7d 100644 (file)
@@ -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;