* Remove photo tag action
*/
-$annotation = get_annotation(get_input('annotation_id'));
+$annotation = elgg_get_annotation_from_id(get_input('annotation_id'));
if (!$annotation instanceof ElggAnnotation || $annotation->name != 'phototag') {
register_error(elgg_echo("tidypics:phototagging:delete:error"));
//delete standard thumbnail image
if ($thumbnail) {
$delfile = new ElggFile();
- $delfile->owner_guid = $this->getOwner();
+ $delfile->owner_guid = $this->getOwnerGUID();
$delfile->setFilename($thumbnail);
$delfile->delete();
}
//delete small thumbnail image
if ($smallthumb) {
$delfile = new ElggFile();
- $delfile->owner_guid = $this->getOwner();
+ $delfile->owner_guid = $this->getOwnerGUID();
$delfile->setFilename($smallthumb);
$delfile->delete();
}
//delete large thumbnail image
if ($largethumb) {
$delfile = new ElggFile();
- $delfile->owner_guid = $this->getOwner();
+ $delfile->owner_guid = $this->getOwnerGUID();
$delfile->setFilename($largethumb);
$delfile->delete();
}