aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-24 12:37:50 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-24 12:37:50 +0000
commit99ea1e941a53b21d70179b8e835c4a583c8ace65 (patch)
tree3b35ac0f7494969c7310b85379e18f935478fd06 /engine
parent33059ceea3ca83044bfa06c258b5f1205ae61eab (diff)
downloadelgg-99ea1e941a53b21d70179b8e835c4a583c8ace65.tar.gz
elgg-99ea1e941a53b21d70179b8e835c4a583c8ace65.tar.bz2
Fixes #2960 removing river entry for deleted annotation
git-svn-id: http://code.elgg.org/elgg/trunk@8463 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggAnnotation.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/classes/ElggAnnotation.php b/engine/classes/ElggAnnotation.php
index f61ea520d..30d9c4245 100644
--- a/engine/classes/ElggAnnotation.php
+++ b/engine/classes/ElggAnnotation.php
@@ -78,6 +78,7 @@ class ElggAnnotation extends ElggExtender {
* @return bool
*/
function delete() {
+ remove_from_river_by_annotation($this->id);
return elgg_delete_metastring_based_object_by_id($this->id, 'annotations');
}