From ba1d4058b45f655be555c9c5b36528bd8212df24 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 10 Jan 2013 04:41:58 +0000 Subject: [PATCH] Use 'in_loaded' instead of 'load_once' --- inc/inc-functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.39.5