X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finc-functions.php;h=8dd5a2a06025f993f93be77058ae3779f2e968a6;hb=33a76a20bc94ffe95e9f13906eb7dc5cf354948d;hp=13ce10c5fdd6dc1695559506a180dccf443ceff4;hpb=8fad776382e63b3f73f8dbe289f229d79cfc2c22;p=mailer.git diff --git a/inc/inc-functions.php b/inc/inc-functions.php index 13ce10c5fd..8dd5a2a060 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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]); @@ -122,7 +122,7 @@ function loadInclude ($inc) { // Is the include file there? if (!isIncludeReadable($inc)) { // Not there so log it - reportBug(__FUNCTION__, __LINE__, sprintf("Include file %s not found or deprecated.", $inc)); + reportBug(__FUNCTION__, __LINE__, sprintf('Include file %s not found or deprecated.', $inc)); } // END - if // Add the path. This is why we need a trailing slash in config.php @@ -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