From 468f0f9406c22a54a109028131d5f7cb56bd0f4e Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 08:16:24 +0000 Subject: Fixes #2473: removes initialise_entity_cache() git-svn-id: http://code.elgg.org/elgg/trunk@7365 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 3ba416453..cac2e2959 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -13,7 +13,7 @@ * @global array $ENTITY_CACHE * @access private */ -$ENTITY_CACHE = NULL; +$ENTITY_CACHE = array(); /** * Cache subtypes and related class names once loaded. @@ -23,21 +23,6 @@ $ENTITY_CACHE = NULL; */ $SUBTYPE_CACHE = NULL; -/** - * Initialise the entity cache. - * - * @return void - * @todo remove this. - * @access private - */ -function initialise_entity_cache() { - global $ENTITY_CACHE; - - if (!$ENTITY_CACHE) { - $ENTITY_CACHE = array(); - } -} - /** * Invalidate this class's entry in the cache. * -- cgit v1.2.3