aboutsummaryrefslogtreecommitdiff
path: root/lib/tidypics.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-13 22:30:51 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-13 22:30:51 -0400
commitf611a0505343629bb3c353647334f039bbed48af (patch)
treee6f6c88d1d930ac9894e275910c541ce59d3f253 /lib/tidypics.php
parent54bc5844dfe6cb684c7aecaf1be5ee8071d98fe0 (diff)
parentb09db0ec2a35590cb13cda6ed053edc10e671035 (diff)
downloadelgg-f611a0505343629bb3c353647334f039bbed48af.tar.gz
elgg-f611a0505343629bb3c353647334f039bbed48af.tar.bz2
Added Brett's access check on photos
Diffstat (limited to 'lib/tidypics.php')
-rw-r--r--lib/tidypics.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tidypics.php b/lib/tidypics.php
index 7426a048e..38c6b31a8 100644
--- a/lib/tidypics.php
+++ b/lib/tidypics.php
@@ -190,6 +190,16 @@ function tidypics_list_photos(array $options = array()) {
return elgg_view_entity_list($sorted_entities, $options);
}
+/**
+ * Returns just a guid from a database $row. Used in elgg_get_entities()'s callback.
+ *
+ * @param stdClass $row
+ * @return type
+ */
+function tp_guid_callback($row) {
+ return ($row->guid) ? $row->guid : false;
+}
+
/*********************************************************************
* the functions below replace broken core functions or add functions