aboutsummaryrefslogtreecommitdiff
path: root/lib/image.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-23 12:53:41 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-23 12:53:41 +0000
commitcee2276dc0bd37f7981e885f9dd32cd0e113c1cc (patch)
tree011d6c966680d2c7b03f03f3d2e90f6ea12eb555 /lib/image.php
parente8fafaca927a17a6badad86e9a0c6ad4c911b8f1 (diff)
downloadelgg-cee2276dc0bd37f7981e885f9dd32cd0e113c1cc.tar.gz
elgg-cee2276dc0bd37f7981e885f9dd32cd0e113c1cc.tar.bz2
updating album image list when a photo is deleted
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/image.php b/lib/image.php
index 4100f3f7b..c60eabfc0 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -18,6 +18,19 @@ class TidypicsImage extends ElggFile {
}
/**
+ * delete image
+ *
+ * @return bool
+ */
+ public function delete() {
+
+ $album = get_entity($this->container_guid);
+ $album->removeImage($this->guid);
+
+ return parent::delete();
+ }
+
+ /**
* Has the photo been tagged with "in this photo" tags
*
* @return true/false