aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 08:16:24 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 08:16:24 +0000
commit468f0f9406c22a54a109028131d5f7cb56bd0f4e (patch)
tree9a76d153ef3846c9ef5793241e7e87d01e76a71c /engine/lib
parent51f2b120faf78b7224a42b769cb99c2620ae9030 (diff)
downloadelgg-468f0f9406c22a54a109028131d5f7cb56bd0f4e.tar.gz
elgg-468f0f9406c22a54a109028131d5f7cb56bd0f4e.tar.bz2
Fixes #2473: removes initialise_entity_cache()
git-svn-id: http://code.elgg.org/elgg/trunk@7365 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/entities.php17
1 files changed, 1 insertions, 16 deletions
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.
@@ -24,21 +24,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.
*
* @param int $guid The entity guid