aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/endpoint/ping.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-13 01:42:18 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-13 01:42:18 +0000
commitdd08cd1133ea8c82acfb7624efcf83571568ee42 (patch)
treed97ea30b007260e7adc5723010c790cffc4bf5e0 /mod/riverdashboard/endpoint/ping.php
parent402134632f0d60e9644d0121c2a84db4a4c1a169 (diff)
downloadelgg-dd08cd1133ea8c82acfb7624efcf83571568ee42.tar.gz
elgg-dd08cd1133ea8c82acfb7624efcf83571568ee42.tar.bz2
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
Diffstat (limited to 'mod/riverdashboard/endpoint/ping.php')
-rw-r--r--mod/riverdashboard/endpoint/ping.php12
1 files changed, 9 insertions, 3 deletions
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)