Skip to content

Commit

Permalink
MDL-34318 - blog - Removal of blog associations from the database on …
Browse files Browse the repository at this point in the history
…delete.

Thanks to Erik Lundberg for this patch.
  • Loading branch information
abgreeve committed Aug 28, 2012
1 parent d71c486 commit ac31c38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions blog/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,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());
Expand Down

0 comments on commit ac31c38

Please sign in to comment.