aboutsummaryrefslogtreecommitdiff
path: root/views/default/photos
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/photos')
-rw-r--r--views/default/photos/group_module.php2
-rw-r--r--views/default/photos/tagging/tag.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/views/default/photos/group_module.php b/views/default/photos/group_module.php
index aa0e7b3ff..de7a451c4 100644
--- a/views/default/photos/group_module.php
+++ b/views/default/photos/group_module.php
@@ -3,7 +3,7 @@
* Group blog module
*/
-$group = elgg_get_page_owner_entity();
+$group = $vars['entity'];
if ($group->photos_enable == "no") {
return true;
diff --git a/views/default/photos/tagging/tag.php b/views/default/photos/tagging/tag.php
index 6f6af968a..6bdc0db02 100644
--- a/views/default/photos/tagging/tag.php
+++ b/views/default/photos/tagging/tag.php
@@ -29,7 +29,7 @@ if ($vars['tag']->type == 'user') {
}
$delete = '';
-$annotation = get_annotation($vars['tag']->annotation_id);
+$annotation = elgg_get_annotation_from_id($vars['tag']->annotation_id);
if ($annotation->canEdit()) {
$url = elgg_http_add_url_query_elements('action/photos/image/untag', array(