Skip to content

Commit

Permalink
removed deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cash committed Jul 14, 2012
1 parent 3639cba commit 2893bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion actions/photos/image/untag.php
Expand Up @@ -3,7 +3,7 @@
* 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"));
Expand Down
6 changes: 3 additions & 3 deletions classes/TidypicsImage.php
Expand Up @@ -380,21 +380,21 @@ protected function removeThumbnails() {
//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();
}
Expand Down

0 comments on commit 2893bbf

Please sign in to comment.