From dd08cd1133ea8c82acfb7624efcf83571568ee42 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 13 May 2010 01:42:18 +0000 Subject: attempting to standardize riverdashboard plugin in similar manner as 1.7 branch revision [5943] git-svn-id: http://code.elgg.org/elgg/trunk@6021 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/riverdashboard/endpoint/ping.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mod/riverdashboard/endpoint/ping.php') diff --git a/mod/riverdashboard/endpoint/ping.php b/mod/riverdashboard/endpoint/ping.php index d41128e1f..ef30475d9 100644 --- a/mod/riverdashboard/endpoint/ping.php +++ b/mod/riverdashboard/endpoint/ping.php @@ -17,24 +17,30 @@ $last_reload = time() - $seconds_passed; //grab any new annotations $annotations = count_annotations('', '', '', '', '', '', '', $last_reload); -if(!$annotations) +if (!$annotations) { $annotations = 0; +} + //grab all new objects created $entity_creation = elgg_get_entities(array( 'count' => TRUE, 'created_time_lower' => $last_reload, 'wheres' => array('e.type != \'user\'') )); -if(!$entity_creation) + +if (!$entity_creation) { $entity_creation = 0; +} + //grab any entities updated $entity_update = elgg_get_entities(array( 'count' => TRUE, 'modified_time_lower' => $last_reload, 'wheres' => array('e.type != \'user\'') )); -if(!$entity_update) +if (!$entity_update) { $entity_update = 0; +} //get any relationships, such as friending - this is not working quite right yet //$relationship_action = elgg_get_entities_from_relationship(array('count' => TRUE)); //if(!$relationship_action) -- cgit v1.2.3