From a61b62e592380fa3be7e4ff812f3e514afabd321 Mon Sep 17 00:00:00 2001 From: nickw Date: Fri, 16 Oct 2009 22:53:22 +0000 Subject: Rewriting core debug messages to be more informative. Introducing the concept of levels for Elgg debugging: notices, warnings and errors are displayed when the appropriate debugging level is enabled. An additional level of "debug" exists to differentiate from errors. git-svn-id: http://code.elgg.org/elgg/trunk@3560 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/objects.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'engine/lib/objects.php') diff --git a/engine/lib/objects.php b/engine/lib/objects.php index a81925ce1..7e21550aa 100644 --- a/engine/lib/objects.php +++ b/engine/lib/objects.php @@ -215,25 +215,7 @@ function get_object_entity_as_row($guid) { global $CONFIG; $guid = (int)$guid; - - /*$row = retrieve_cached_entity_row($guid); - if ($row) - { - // We have already cached this object, so retrieve its value from the cache - if (isset($CONFIG->debug) && $CONFIG->debug) - error_log("** Retrieving sub part of GUID:$guid from cache"); - - return $row; - } - else - {*/ - // Object not cached, load it. - if ($CONFIG->debug) { - error_log("** Sub part of GUID:$guid loaded from DB"); - } - - return get_data_row("SELECT * from {$CONFIG->dbprefix}objects_entity where guid=$guid"); - //} + return get_data_row("SELECT * from {$CONFIG->dbprefix}objects_entity where guid=$guid"); } /** -- cgit v1.2.3