From: Roland Häder Date: Thu, 10 Jan 2013 04:41:58 +0000 (+0000) Subject: Use 'in_loaded' instead of 'load_once' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ba1d4058b45f655be555c9c5b36528bd8212df24;p=mailer.git Use 'in_loaded' instead of 'load_once' --- diff --git a/inc/inc-functions.php b/inc/inc-functions.php index e650578636..aded9e43ae 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.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