Permalink
Browse files

Merge branch 'wip-MDL-34318-MOODLE_23_STABLE' of git://github.com/abg…

…reeve/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 9f66e64 + 3390570 commit f38508168f150303b5824dd6fa8446bcf57e2115 Sam Hemelryk committed Sep 2, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 blog/locallib.php
View
@@ -405,11 +405,10 @@ public function edit($params=array(), $form=null, $summaryoptions=array(), $atta
* @return void
*/
public function delete() {
- global $DB, $USER;
-
- $returnurl = '';
+ global $DB;
$this->delete_attachments();
+ $this->remove_associations();
$DB->delete_records('post', array('id' => $this->id));
tag_set('post', $this->id, array());

0 comments on commit f385081

Please sign in to comment.